pub enum Error {
Transient(Response),
Permanent(Response),
ResponseParsing(&'static str),
ChallengeParsing(DecodeError),
Utf8Parsing(FromUtf8Error),
Client(&'static str),
Resolution,
Io(Error),
Tls(Error),
Parsing(ErrorKind),
}
Expand description
An enum of all error kinds.
Variants
Transient(Response)
Transient SMTP error, 4xx reply code
Permanent(Response)
Permanent SMTP error, 5xx reply code
ResponseParsing(&'static str)
Error parsing a response
ChallengeParsing(DecodeError)
Error parsing a base64 string in response
Utf8Parsing(FromUtf8Error)
Error parsing UTF8in response
Client(&'static str)
Internal client error
Resolution
DNS resolution error
Io(Error)
IO error
Tls(Error)
TLS error
Parsing(ErrorKind)
Parsing error
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(err: DecodeError) -> Error
fn from(err: DecodeError) -> Error
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
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
sourceimpl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
sourcefn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
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 more