pub struct Advertisement {
pub hash_kind: Kind,
pub capabilities: PeerCapabilities,
pub refs: Vec<AdvertisedRef>,
}Expand description
The reference namespace a remote advertised, and what it said it is.
Fields§
§hash_kind: KindThe hash algorithm the remote named in object-format, already checked
against the caller’s own. See ls_remote.
capabilities: PeerCapabilitiesEverything the remote advertised about itself, verbatim, for a caller that wants to ask a question this module did not.
refs: Vec<AdvertisedRef>Every reference ls-refs returned, in the order the remote sent them.
AdvertisedRef and not a new struct: the server side already has
this exact shape — name, target, peeled, symref target — and a
client-side twin of it would be one more pair of types to keep agreeing
(one implementation).
Trait Implementations§
Source§impl Clone for Advertisement
impl Clone for Advertisement
Auto Trait Implementations§
impl Freeze for Advertisement
impl RefUnwindSafe for Advertisement
impl Send for Advertisement
impl Sync for Advertisement
impl Unpin for Advertisement
impl UnsafeUnpin for Advertisement
impl UnwindSafe for Advertisement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more