Enum async_smtp::error::Error  
source · pub enum Error {
    Transient(Response),
    Permanent(Response),
    ResponseParsing(&'static str),
    ChallengeParsing(DecodeError),
    Utf8Parsing(FromUtf8Error),
    Client(&'static str),
    Resolution,
    Io(Error),
    Parsing(ErrorKind),
    Timeout(Elapsed),
    AddrParseError(AddrParseError),
}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
Parsing(ErrorKind)
Parsing error
Timeout(Elapsed)
Timeout error
AddrParseError(AddrParseError)
Failure to parse email address.
Trait Implementations§
source§impl Error for Error
 
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AddrParseError> for Error
 
impl From<AddrParseError> for Error
source§fn from(source: AddrParseError) -> Self
 
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for Error
 
impl From<DecodeError> for Error
source§fn from(source: DecodeError) -> Self
 
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
 
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
 
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.