pub enum Error {
Dns,
Network(ErrorKind),
Codec,
InvalidUrl(Error),
Tls(TlsError),
BufferTooSmall,
AlreadySent,
IncorrectBodyWritten,
ConnectionAborted,
}
Expand description
Errors that can be returned by this library.
Variants§
Dns
An error with DNS (it’s always DNS)
Network(ErrorKind)
An error with the underlying network
Codec
An error encoding or decoding data
InvalidUrl(Error)
An error parsing the URL
Tls(TlsError)
Tls Error
BufferTooSmall
The provided buffer is too small
AlreadySent
The request is already sent
IncorrectBodyWritten
An invalid number of bytes were written to request body
ConnectionAborted
The underlying connection was closed while being used
Trait Implementations§
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(_: ParseIntError) -> Error
fn from(_: ParseIntError) -> Error
Converts to this type from the input type.
Source§impl<E: Error> From<ReadExactError<E>> for Error
impl<E: Error> From<ReadExactError<E>> for Error
Source§fn from(value: ReadExactError<E>) -> Self
fn from(value: ReadExactError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
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