pub enum Error {
Show 23 variants
Io(Error),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
Addr(AddrParseError),
Httparse(Error),
WebSocketFail(Response),
TimeOut,
MissingBody,
ResponseTooBig,
InvalidRedirect,
Closed,
NoHost,
InvalidScheme,
NoSpace,
Url(ParseError),
Other(&'static str),
NoTls,
ChunkedParse,
WebSocketParse,
AuthenticateParse,
InvalidPin,
DecompressionFailure,
ChunkOverlimit(usize),
}
Variants§
Io(Error)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
Addr(AddrParseError)
Httparse(Error)
WebSocketFail(Response)
TimeOut
MissingBody
Request structure did not contain body and CallSimple was used for POST/PUT.
ResponseTooBig
Response over max_response limit
InvalidRedirect
Closed
Connection closed.
NoHost
No host found in request
InvalidScheme
Invalid scheme
NoSpace
All 0xFFFF slots for connections are full.
Url(ParseError)
Other(&'static str)
NoTls
You must pick one of the features: native, rustls, openssl
ChunkedParse
Eror while parsing chunked stream
WebSocketParse
Eror while parsing chunked stream
AuthenticateParse
Eror while parsing chunked stream
InvalidPin
DecompressionFailure
ChunkOverlimit(usize)
Chunk was larger than configured CallBuilder::chunked_max_chunk.
Trait Implementations§
source§impl Fail for Error
impl Fail for Error
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more