Enum mio_httpc::RecvState[][src]

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

Used when call is in receive response state.

Variants

Error(Error)

Unrecoverable error has occured and call is finished.

Tuple Fields of Error

0: Error

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

Tuple Fields of Response

0: Response1: ResponseBody
ReceivedBody(usize)

How many bytes were received.

Tuple Fields of ReceivedBody

0: usize
DoneWithBody(Vec<u8>)

Request is done with body.

Tuple Fields of DoneWithBody

0: Vec<u8>
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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.