pub enum SmtpMessageSendError {
MailFrom(SmtpMailError),
RcptTo(SmtpRcptError),
Data(SmtpDataError),
}Expand description
Failure causes during the SMTP send composite coroutine.
Variants§
MailFrom(SmtpMailError)
The MAIL FROM step failed.
RcptTo(SmtpRcptError)
A RCPT TO step failed.
Data(SmtpDataError)
The DATA step failed.
Trait Implementations§
Source§impl Debug for SmtpMessageSendError
impl Debug for SmtpMessageSendError
Source§impl Display for SmtpMessageSendError
impl Display for SmtpMessageSendError
Source§impl Error for SmtpMessageSendError
impl Error for SmtpMessageSendError
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<SmtpDataError> for SmtpMessageSendError
impl From<SmtpDataError> for SmtpMessageSendError
Source§fn from(source: SmtpDataError) -> Self
fn from(source: SmtpDataError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpMailError> for SmtpMessageSendError
impl From<SmtpMailError> for SmtpMessageSendError
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
Available on crate feature client only.
impl From<SmtpMessageSendError> for SmtpClientStdError
Available on crate feature
client only.Source§fn from(source: SmtpMessageSendError) -> Self
fn from(source: SmtpMessageSendError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpRcptError> for SmtpMessageSendError
impl From<SmtpRcptError> for SmtpMessageSendError
Source§fn from(source: SmtpRcptError) -> Self
fn from(source: SmtpRcptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SmtpMessageSendError
impl RefUnwindSafe for SmtpMessageSendError
impl Send for SmtpMessageSendError
impl Sync for SmtpMessageSendError
impl Unpin for SmtpMessageSendError
impl UnsafeUnpin for SmtpMessageSendError
impl UnwindSafe for SmtpMessageSendError
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
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.