pub enum LibError {
IoError(Error),
InvalidUrlError(InvalidUrl),
HostLookupError,
RustlsError(Error),
StatusOutOfRange(u8),
DataNotUtf8(FromUtf8Error),
InvalidMime(FromStrError),
DnsClientError(ClientError),
}Expand description
Main error structure, also a wrapper for everything else
Variants§
IoError(Error)
General I/O error
InvalidUrlError(InvalidUrl)
URL parse or check error
HostLookupError
DNS server has provided no suitable records (e. g. domain does not exist)
RustlsError(Error)
TLS library error related to certificate/signature verification failure or connection failure
StatusOutOfRange(u8)
Response status code is out of [10; 69] range
DataNotUtf8(FromUtf8Error)
Response metadata or content cannot be parsed as a UTF-8 string without errors
InvalidMime(FromStrError)
Provided string is not a valid MIME type
DnsClientError(ClientError)
Hickory DNS client error
Implementations§
Trait Implementations§
Source§impl From<CertificateError> for LibError
impl From<CertificateError> for LibError
Source§fn from(err: CertificateError) -> Self
fn from(err: CertificateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for LibError
Available on crate feature hickory only.
impl From<Error> for LibError
Available on crate feature
hickory only.Source§fn from(err: HickoryClientError) -> Self
fn from(err: HickoryClientError) -> Self
Converts to this type from the input type.
Source§impl From<FromStrError> for LibError
impl From<FromStrError> for LibError
Source§fn from(err: FromStrError) -> Self
fn from(err: FromStrError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for LibError
impl From<FromUtf8Error> for LibError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUrl> for LibError
impl From<InvalidUrl> for LibError
Source§fn from(err: InvalidUrl) -> Self
fn from(err: InvalidUrl) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for LibError
impl From<ParseError> for LibError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ProtoError> for LibError
Available on crate feature hickory only.
impl From<ProtoError> for LibError
Available on crate feature
hickory only.Source§fn from(err: HickoryProtoError) -> Self
fn from(err: HickoryProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LibError
impl !RefUnwindSafe for LibError
impl Send for LibError
impl Sync for LibError
impl Unpin for LibError
impl !UnwindSafe for LibError
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