Enum mio_httpc::RecvState [] [src]

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

Used when call is in receive response state.

Variants

Unrecoverable error has occured and call is finished.

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

How many bytes were received.

Request is done with body.

We are not done sending request yet.

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

Nothing yet to return.

Trait Implementations

impl Debug for RecvState
[src]

[src]

Formats the value using the given formatter.