Enum anni_fetch::client::Message[][src]

pub enum Message {
    Normal(Vec<u8>),
    Flush,
    Delimeter,
    ResponseEnd,
    PackStart,
    PackData(Vec<u8>),
    PackProgress(String),
    PackError(String),
}

Message abstracts the type of information you may receive from a Git server.

Variants

Normal(Vec<u8>)
Flush

0000 Flush Packet(flush-pkt)

Indicates the end of a message

Delimeter

0001 Delimeter Packet(delim-pkt)

Separates sections of a message

ResponseEnd

0002 Response End Packet(response-end-pkg)

Indicates the end of a response for stateless connections

PackStart

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

PackData(Vec<u8>)

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.