Enum mio_httpc::SendState

source ·
pub enum SendState {
    Error(Error),
    SentBody(usize),
    WaitReqBody,
    Receiving,
    Done,
    Wait,
}
Expand description

Used when call is in send request state.

Variants

Error(Error)

Unrecoverable error has occured and call is finished.

SentBody(usize)

How many bytes of body have just been sent.

WaitReqBody

Waiting for body to be provided for sending.

Receiving

Call has switched to receiving state.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.