Enum rotor_http::client::ResponseError
[−]
pub enum ResponseError { ChunkIsTooLarge(u64, usize), InvalidChunkSize(InvalidChunkSize), Connection(ProtocolError), }
Error type which is passed to bad_response
This is primarily for better debugging. Could also be used for putting into the logs.
Note, you should not match the enum values and/or make an exhaustive match over the enum. More errors will be added at will.
Variants
ChunkIsTooLarge(u64, usize)
InvalidChunkSize(InvalidChunkSize)
Connection(ProtocolError)
Trait Implementations
impl Debug for ResponseError
[src]
impl Display for ResponseError
impl Error for ResponseError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<InvalidChunkSize> for ResponseError
fn from(e: InvalidChunkSize) -> ResponseError
Performs the conversion.
impl From<ProtocolError> for ResponseError
fn from(err: ProtocolError) -> ResponseError
Performs the conversion.