Enum anni_fetch::client::Message [−][src]
Message abstracts the type of information you may receive from a Git server.
Variants
0000 Flush Packet(flush-pkt)
Indicates the end of a message
0001 Delimeter Packet(delim-pkt)
Separates sections of a message
0002 Response End Packet(response-end-pkg)
Indicates the end of a response for stateless connections
Received when data is packfile\n
After this message, only Pack.+
messages would be sent
There is a byte at the beginning of all Pack.+
messages except PackStart
The stream code can be one of:
1 - pack data
2 - progress messages
3 - fatal error message just before stream aborts
Received after Message::PackStart
when stream code is 1
Data of PACK file
PackProgress(String)
Received after Message::PackStart
when stream code is 2
Progress messages of the transfer
PackError(String)
Received after Message::PackStart
when stream code is 3
Fatal error message
Trait Implementations
impl Debug for Message
[src]
impl PartialEq<Message> for Message
[src]
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,