pub struct Preamble {
pub commands: Vec<RefCommand>,
pub unnameable: Vec<UnnameableRef>,
pub peer: PeerCapabilities,
}Expand description
What the client sends first: its ref commands (and the ones it could not
name) plus the capabilities it chose. Read by ReceivePack::read_preamble
— with the hash check already applied — and consumed by
ReceivePack::serve_after_preamble. The split exists so the
first-repository door can read this before a store exists.
Fields§
§commands: Vec<RefCommand>The nameable commands, in wire order.
unnameable: Vec<UnnameableRef>The commands whose names gunnar refused.
peer: PeerCapabilitiesWhat the client asked for.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preamble
impl RefUnwindSafe for Preamble
impl Send for Preamble
impl Sync for Preamble
impl Unpin for Preamble
impl UnsafeUnpin for Preamble
impl UnwindSafe for Preamble
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