Enum mio_httpc::RecvState [−][src]
pub enum RecvState {
Error(Error),
Response(Response, ResponseBody),
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
Response(Response, ResponseBody)
HTTP Response and response body size. If there is a body it will follow, otherwise call is done.
Tuple Fields of Response
0: Response
1: ResponseBody
ReceivedBody(usize)
How many bytes were received.
Tuple Fields of ReceivedBody
0: usize
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.