pub enum SmtpRsetError {
Rejected {
code: u16,
message: String,
},
Send(SmtpCommandSendError),
}Expand description
Failure causes during the SMTP RSET exchange.
Variants§
Rejected
The server rejected the RSET command.
Send(SmtpCommandSendError)
The underlying command exchange failed.
Trait Implementations§
Source§impl Clone for SmtpRsetError
impl Clone for SmtpRsetError
Source§fn clone(&self) -> SmtpRsetError
fn clone(&self) -> SmtpRsetError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmtpRsetError
impl Debug for SmtpRsetError
Source§impl Display for SmtpRsetError
impl Display for SmtpRsetError
Source§impl Error for SmtpRsetError
impl Error for SmtpRsetError
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<SmtpCommandSendError> for SmtpRsetError
impl From<SmtpCommandSendError> for SmtpRsetError
Source§fn from(source: SmtpCommandSendError) -> Self
fn from(source: SmtpCommandSendError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpRsetError> for SmtpClientStdError
Available on crate feature client only.
impl From<SmtpRsetError> for SmtpClientStdError
Available on crate feature
client only.Source§fn from(source: SmtpRsetError) -> Self
fn from(source: SmtpRsetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SmtpRsetError
impl RefUnwindSafe for SmtpRsetError
impl Send for SmtpRsetError
impl Sync for SmtpRsetError
impl Unpin for SmtpRsetError
impl UnsafeUnpin for SmtpRsetError
impl UnwindSafe for SmtpRsetError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
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.