pub enum Error {
Show 20 variants
Io(Error),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
Addr(AddrParseError),
Httparse(Error),
WebSocketFail(Response),
TimeOut,
MissingBody,
ResponseTooBig,
Closed,
NoHost,
InvalidScheme,
NoSpace,
Url(ParseError),
Other(&'static str),
NoTls,
ChunkedParse,
WebSocketParse,
AuthenticateParse,
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
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
ChunkOverlimit(usize)
Chunk was larger than configured CallBuilder::chunked_max_chunk.
Trait Implementations
sourceimpl Fail for Error
impl Fail for Error
sourcefn 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more