pub enum PktLine<'a> {
Data(&'a [u8]),
SidebandData(PackFile<'a>),
SidebandMsg(&'a [u8]),
Flush,
Delimiter,
ResponseEnd,
}Expand description
A wrapper containing every possible type of message that can be sent to a Git client.
Variants§
Data(&'a [u8])
General data sent to a client, generally a UTF-8 encoded string.
SidebandData(PackFile<'a>)
Similar to a data packet, but used during packfile sending to indicate this
packet is a block of data by appending a byte containing the u8 1.
SidebandMsg(&'a [u8])
Similar to a data packet, but used during packfile sending to indicate this
packet is a status message by appending a byte containing the u8 2.
Flush
Indicates the end of a response.
Delimiter
Separates sections of a response.
ResponseEnd
Indicates the end of the response, allowing the client to send another request.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PktLine<'a>
impl<'a> RefUnwindSafe for PktLine<'a>
impl<'a> Send for PktLine<'a>
impl<'a> Sync for PktLine<'a>
impl<'a> Unpin for PktLine<'a>
impl<'a> UnwindSafe for PktLine<'a>
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