pub enum SmtpClientStdError {
Show 22 variants
Greeting(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),
Rset(SmtpRsetError),
Quit(SmtpQuitError),
MessageSend(SmtpMessageSendError),
Io(Error),
Tls(Error),
UrlMissingHost(String),
UrlUnsupportedScheme(String, String),
StartTlsOverTls,
}Available on crate feature
client only.Expand description
Errors returned by SmtpClientStd.
Variants§
Greeting(SmtpGreetingGetError)
Ehlo(SmtpEhloError)
Helo(SmtpHeloError)
StartTls(SmtpStartTlsError)
AuthAnonymous(SmtpAuthAnonymousError)
AuthLogin(SmtpAuthLoginError)
AuthPlain(SmtpAuthPlainError)
AuthOAuthBearer(SmtpAuthOauthbearerError)
AuthXOAuth2(SmtpAuthXoauth2Error)
AuthScramSha256(SmtpAuthScramSha256Error)
Available on crate feature
scram only.Mail(SmtpMailError)
Rcpt(SmtpRcptError)
Data(SmtpDataError)
Noop(SmtpNoopError)
Rset(SmtpRsetError)
Quit(SmtpQuitError)
MessageSend(SmtpMessageSendError)
Io(Error)
Tls(Error)
Available on crate features
native-tls or rustls-aws or rustls-ring only.UrlMissingHost(String)
Available on crate features
native-tls or rustls-aws or rustls-ring only.UrlUnsupportedScheme(String, String)
Available on crate features
native-tls or rustls-aws or rustls-ring only.StartTlsOverTls
Available on crate features
native-tls or rustls-aws or rustls-ring only.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)>
Returns 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<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
Converts to this type from the input type.
Source§impl From<SmtpAuthLoginError> for SmtpClientStdError
impl From<SmtpAuthLoginError> for SmtpClientStdError
Source§fn from(source: SmtpAuthLoginError) -> Self
fn from(source: SmtpAuthLoginError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpAuthOauthbearerError> for SmtpClientStdError
impl From<SmtpAuthOauthbearerError> for SmtpClientStdError
Source§fn from(source: SmtpAuthOauthbearerError) -> Self
fn from(source: SmtpAuthOauthbearerError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpAuthPlainError> for SmtpClientStdError
impl From<SmtpAuthPlainError> for SmtpClientStdError
Source§fn from(source: SmtpAuthPlainError) -> Self
fn from(source: SmtpAuthPlainError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpAuthScramSha256Error> for SmtpClientStdError
impl From<SmtpAuthScramSha256Error> for SmtpClientStdError
Source§fn from(source: SmtpAuthScramSha256Error) -> Self
fn from(source: SmtpAuthScramSha256Error) -> Self
Converts to this type from the input type.
Source§impl From<SmtpAuthXoauth2Error> for SmtpClientStdError
impl From<SmtpAuthXoauth2Error> for SmtpClientStdError
Source§fn from(source: SmtpAuthXoauth2Error) -> Self
fn from(source: SmtpAuthXoauth2Error) -> Self
Converts to this type from the input type.
Source§impl From<SmtpDataError> for SmtpClientStdError
impl From<SmtpDataError> for SmtpClientStdError
Source§fn from(source: SmtpDataError) -> Self
fn from(source: SmtpDataError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpEhloError> for SmtpClientStdError
impl From<SmtpEhloError> for SmtpClientStdError
Source§fn from(source: SmtpEhloError) -> Self
fn from(source: SmtpEhloError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpGreetingGetError> for SmtpClientStdError
impl From<SmtpGreetingGetError> for SmtpClientStdError
Source§fn from(source: SmtpGreetingGetError) -> Self
fn from(source: SmtpGreetingGetError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpHeloError> for SmtpClientStdError
impl From<SmtpHeloError> for SmtpClientStdError
Source§fn from(source: SmtpHeloError) -> Self
fn from(source: SmtpHeloError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpMailError> for SmtpClientStdError
impl From<SmtpMailError> for SmtpClientStdError
Source§fn from(source: SmtpMailError) -> Self
fn from(source: SmtpMailError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpMessageSendError> for SmtpClientStdError
impl From<SmtpMessageSendError> for SmtpClientStdError
Source§fn from(source: SmtpMessageSendError) -> Self
fn from(source: SmtpMessageSendError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpNoopError> for SmtpClientStdError
impl From<SmtpNoopError> for SmtpClientStdError
Source§fn from(source: SmtpNoopError) -> Self
fn from(source: SmtpNoopError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpQuitError> for SmtpClientStdError
impl From<SmtpQuitError> for SmtpClientStdError
Source§fn from(source: SmtpQuitError) -> Self
fn from(source: SmtpQuitError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpRcptError> for SmtpClientStdError
impl From<SmtpRcptError> for SmtpClientStdError
Source§fn from(source: SmtpRcptError) -> Self
fn from(source: SmtpRcptError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpRsetError> for SmtpClientStdError
impl From<SmtpRsetError> for SmtpClientStdError
Source§fn from(source: SmtpRsetError) -> Self
fn from(source: SmtpRsetError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpStartTlsError> for SmtpClientStdError
impl From<SmtpStartTlsError> for SmtpClientStdError
Source§fn from(source: SmtpStartTlsError) -> Self
fn from(source: SmtpStartTlsError) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.