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. State may switch back to sending if we are following redirects or need to send request again due to digest auth.

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. Read more

Auto Trait Implementations

impl Send for RecvState

impl Sync for RecvState