pub enum SmtpClientStdError {
Show 23 variants
SmtpGreeting(SmtpGreetingGetError),
Ehlo(SmtpEhloError),
Helo(SmtpHeloError),
StartTls(SmtpStartTlsError),
AuthAnonymous(SmtpAuthAnonymousError),
AuthLogin(SmtpAuthLoginError),
AuthPlain(SmtpAuthPlainError),
AuthOAuthBearer(SmtpAuthOauthbearerError),
AuthXOAuth2(SmtpAuthXoauth2Error),
AuthScramSha256(SmtpAuthScramSha256Error),
Mail(SmtpMailError),
Rcpt(SmtpRcptError),
Data(SmtpDataError),
Noop(SmtpNoopError),
Raw(SmtpRawError),
Rset(SmtpRsetError),
Quit(SmtpQuitError),
MessageSend(SmtpMessageSendError),
Io(Error),
Tls(Error),
UrlMissingHost(String),
UrlUnsupportedScheme(String, String),
StartTlsOverTls,
}client only.Expand description
Errors returned by SmtpClientStd.
Variants§
SmtpGreeting(SmtpGreetingGetError)
The greeting coroutine failed.
Ehlo(SmtpEhloError)
The EHLO coroutine failed.
Helo(SmtpHeloError)
The HELO coroutine failed.
StartTls(SmtpStartTlsError)
The STARTTLS coroutine failed.
AuthAnonymous(SmtpAuthAnonymousError)
The AUTH ANONYMOUS coroutine failed.
AuthLogin(SmtpAuthLoginError)
The AUTH LOGIN coroutine failed.
AuthPlain(SmtpAuthPlainError)
The AUTH PLAIN coroutine failed.
AuthOAuthBearer(SmtpAuthOauthbearerError)
The AUTH OAUTHBEARER coroutine failed.
AuthXOAuth2(SmtpAuthXoauth2Error)
The AUTH XOAUTH2 coroutine failed.
AuthScramSha256(SmtpAuthScramSha256Error)
scram only.The AUTH SCRAM-SHA-256 coroutine failed.
Mail(SmtpMailError)
The MAIL FROM coroutine failed.
Rcpt(SmtpRcptError)
The RCPT TO coroutine failed.
Data(SmtpDataError)
The DATA coroutine failed.
Noop(SmtpNoopError)
The NOOP coroutine failed.
Raw(SmtpRawError)
The raw passthrough coroutine failed.
Rset(SmtpRsetError)
The RSET coroutine failed.
Quit(SmtpQuitError)
The QUIT coroutine failed.
MessageSend(SmtpMessageSendError)
The composite message send coroutine failed.
Io(Error)
Reading from or writing to the stream failed.
Tls(Error)
native-tls or rustls-aws or rustls-ring only.Opening the TCP connection or negotiating TLS failed.
UrlMissingHost(String)
native-tls or rustls-aws or rustls-ring only.The connection URL carries no host part.
UrlUnsupportedScheme(String, String)
native-tls or rustls-aws or rustls-ring only.The connection URL scheme is neither smtp nor smtps.
StartTlsOverTls
native-tls or rustls-aws or rustls-ring only.STARTTLS was requested on an already-TLS connection.
Trait Implementations§
Source§impl Debug for SmtpClientStdError
impl Debug for SmtpClientStdError
Source§impl Display for SmtpClientStdError
impl Display for SmtpClientStdError
Source§impl Error for SmtpClientStdError
impl Error for SmtpClientStdError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for SmtpClientStdError
impl From<Error> for SmtpClientStdError
Source§impl From<Error> for SmtpClientStdError
impl From<Error> for SmtpClientStdError
Source§impl From<SmtpAuthAnonymousError> for SmtpClientStdError
impl From<SmtpAuthAnonymousError> for SmtpClientStdError
Source§fn from(source: SmtpAuthAnonymousError) -> Self
fn from(source: SmtpAuthAnonymousError) -> Self
Source§impl From<SmtpAuthLoginError> for SmtpClientStdError
impl From<SmtpAuthLoginError> for SmtpClientStdError
Source§fn from(source: SmtpAuthLoginError) -> Self
fn from(source: SmtpAuthLoginError) -> Self
Source§impl From<SmtpAuthOauthbearerError> for SmtpClientStdError
impl From<SmtpAuthOauthbearerError> for SmtpClientStdError
Source§fn from(source: SmtpAuthOauthbearerError) -> Self
fn from(source: SmtpAuthOauthbearerError) -> Self
Source§impl From<SmtpAuthPlainError> for SmtpClientStdError
impl From<SmtpAuthPlainError> for SmtpClientStdError
Source§fn from(source: SmtpAuthPlainError) -> Self
fn from(source: SmtpAuthPlainError) -> Self
Source§impl From<SmtpAuthScramSha256Error> for SmtpClientStdError
impl From<SmtpAuthScramSha256Error> for SmtpClientStdError
Source§fn from(source: SmtpAuthScramSha256Error) -> Self
fn from(source: SmtpAuthScramSha256Error) -> Self
Source§impl From<SmtpAuthXoauth2Error> for SmtpClientStdError
impl From<SmtpAuthXoauth2Error> for SmtpClientStdError
Source§fn from(source: SmtpAuthXoauth2Error) -> Self
fn from(source: SmtpAuthXoauth2Error) -> Self
Source§impl From<SmtpDataError> for SmtpClientStdError
impl From<SmtpDataError> for SmtpClientStdError
Source§fn from(source: SmtpDataError) -> Self
fn from(source: SmtpDataError) -> Self
Source§impl From<SmtpEhloError> for SmtpClientStdError
impl From<SmtpEhloError> for SmtpClientStdError
Source§fn from(source: SmtpEhloError) -> Self
fn from(source: SmtpEhloError) -> Self
Source§impl From<SmtpGreetingGetError> for SmtpClientStdError
impl From<SmtpGreetingGetError> for SmtpClientStdError
Source§fn from(source: SmtpGreetingGetError) -> Self
fn from(source: SmtpGreetingGetError) -> Self
Source§impl From<SmtpHeloError> for SmtpClientStdError
impl From<SmtpHeloError> for SmtpClientStdError
Source§fn from(source: SmtpHeloError) -> Self
fn from(source: SmtpHeloError) -> Self
Source§impl From<SmtpMailError> for SmtpClientStdError
impl From<SmtpMailError> for SmtpClientStdError
Source§fn from(source: SmtpMailError) -> Self
fn from(source: SmtpMailError) -> Self
Source§impl From<SmtpMessageSendError> for SmtpClientStdError
impl From<SmtpMessageSendError> for SmtpClientStdError
Source§fn from(source: SmtpMessageSendError) -> Self
fn from(source: SmtpMessageSendError) -> Self
Source§impl From<SmtpNoopError> for SmtpClientStdError
impl From<SmtpNoopError> for SmtpClientStdError
Source§fn from(source: SmtpNoopError) -> Self
fn from(source: SmtpNoopError) -> Self
Source§impl From<SmtpQuitError> for SmtpClientStdError
impl From<SmtpQuitError> for SmtpClientStdError
Source§fn from(source: SmtpQuitError) -> Self
fn from(source: SmtpQuitError) -> Self
Source§impl From<SmtpRawError> for SmtpClientStdError
impl From<SmtpRawError> for SmtpClientStdError
Source§fn from(source: SmtpRawError) -> Self
fn from(source: SmtpRawError) -> Self
Source§impl From<SmtpRcptError> for SmtpClientStdError
impl From<SmtpRcptError> for SmtpClientStdError
Source§fn from(source: SmtpRcptError) -> Self
fn from(source: SmtpRcptError) -> Self
Source§impl From<SmtpRsetError> for SmtpClientStdError
impl From<SmtpRsetError> for SmtpClientStdError
Source§fn from(source: SmtpRsetError) -> Self
fn from(source: SmtpRsetError) -> Self
Source§impl From<SmtpStartTlsError> for SmtpClientStdError
impl From<SmtpStartTlsError> for SmtpClientStdError
Source§fn from(source: SmtpStartTlsError) -> Self
fn from(source: SmtpStartTlsError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for SmtpClientStdError
impl !UnwindSafe for SmtpClientStdError
impl Freeze for SmtpClientStdError
impl Send for SmtpClientStdError
impl Sync for SmtpClientStdError
impl Unpin for SmtpClientStdError
impl UnsafeUnpin for SmtpClientStdError
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
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.