@@ -50,20 +50,24 @@ pub enum Ref {
5050 } ,
5151}
5252
53- /// The result of the [`handshake()`][super::handshake()] function.
54- #[ derive( Default , Debug , Clone ) ]
55- #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
5653#[ cfg( feature = "handshake" ) ]
57- pub struct Outcome {
58- /// The protocol version the server responded with. It might have downgraded the desired version.
59- pub server_protocol_version : gix_transport:: Protocol ,
60- /// The references reported as part of the `Protocol::V1` handshake, or `None` otherwise as V2 requires a separate request.
61- pub refs : Option < Vec < Ref > > ,
62- /// Shallow updates as part of the `Protocol::V1`, to shallow a particular object.
63- /// Note that unshallowing isn't supported here.
64- pub v1_shallow_updates : Option < Vec < crate :: fetch:: response:: ShallowUpdate > > ,
65- /// The server capabilities.
66- pub capabilities : gix_transport:: client:: Capabilities ,
54+ pub ( crate ) mod hero {
55+ use crate :: handshake:: Ref ;
56+
57+ /// The result of the [`handshake()`](crate::handshake()) function.
58+ #[ derive( Default , Debug , Clone ) ]
59+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
60+ pub struct Handshake {
61+ /// The protocol version the server responded with. It might have downgraded the desired version.
62+ pub server_protocol_version : gix_transport:: Protocol ,
63+ /// The references reported as part of the `Protocol::V1` handshake, or `None` otherwise as V2 requires a separate request.
64+ pub refs : Option < Vec < Ref > > ,
65+ /// Shallow updates as part of the `Protocol::V1`, to shallow a particular object.
66+ /// Note that unshallowing isn't supported here.
67+ pub v1_shallow_updates : Option < Vec < crate :: fetch:: response:: ShallowUpdate > > ,
68+ /// The server capabilities.
69+ pub capabilities : gix_transport:: client:: Capabilities ,
70+ }
6771}
6872
6973#[ cfg( feature = "handshake" ) ]
0 commit comments