pub struct Advertisement {
pub refs: Vec<(String, ObjectId)>,
pub capabilities: Vec<String>,
pub head_symref: Option<String>,
pub protocol_version: u8,
}Expand description
The captured ref/capability advertisement for a v0/v1 connection.
Fields§
§refs: Vec<(String, ObjectId)>Advertised refs (name -> oid), excluding HEAD and peeled/capabilities carriers.
capabilities: Vec<String>Server capability tokens (split on whitespace from the first ref line).
head_symref: Option<String>HEAD symref target, if advertised via symref=HEAD:<target>.
protocol_version: u8Negotiated protocol version.
Trait Implementations§
Source§impl Clone for Advertisement
impl Clone for Advertisement
Source§fn clone(&self) -> Advertisement
fn clone(&self) -> Advertisement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Advertisement
impl Debug for Advertisement
Source§impl Default for Advertisement
impl Default for Advertisement
Source§fn default() -> Advertisement
fn default() -> Advertisement
Returns the “default value” for a type. Read more
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