[][src]Enum mio_httpc::RecvState

pub enum RecvState {
    Error(Error),
    Response(ResponseResponseBody),
    ReceivedBody(usize),
    DoneWithBody(Vec<u8>),
    Sending,
    Done,
    Wait,
}

Used when call is in receive response state.

Variants

Error(Error)

Unrecoverable error has occured and call is finished.

Response(ResponseResponseBody)

HTTP Response and response body size. If there is a body it will follow, otherwise call is done.

ReceivedBody(usize)

How many bytes were received.

DoneWithBody(Vec<u8>)

Request is done with body.

Sending

We are not done sending request yet. State may switch back to sending if we are following redirects or need to send request again due to digest auth.

Done

Request is done, body has been returned or there is no response body.

Wait

Nothing yet to return.

Trait Implementations

impl Debug for RecvState[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,