pub enum EmailClientStdError {
Imap(ImapClientError),
Jmap(JmapClientError),
Smtp(SmtpClientError),
Maildir(MaildirClientError),
M2dir(M2dirClientError),
NoBackendRegistered,
UnsupportedOperation,
}Available on crate feature
client and (crate features imap or jmap or m2dir or maildir or smtp) only.Expand description
Errors surfaced by EmailClientStd.
Each variant flattens the per-protocol client’s error type via
#[from] so the matching ? operator works on the shared client.
Variants§
Imap(ImapClientError)
Available on crate feature
imap only.Jmap(JmapClientError)
Available on crate feature
jmap only.Smtp(SmtpClientError)
Available on crate feature
smtp only.Maildir(MaildirClientError)
Available on crate feature
maildir only.M2dir(M2dirClientError)
Available on crate feature
m2dir only.NoBackendRegistered
UnsupportedOperation
Trait Implementations§
Source§impl Debug for EmailClientStdError
impl Debug for EmailClientStdError
Source§impl Display for EmailClientStdError
impl Display for EmailClientStdError
Source§impl Error for EmailClientStdError
impl Error for EmailClientStdError
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<ImapClientError> for EmailClientStdError
impl From<ImapClientError> for EmailClientStdError
Source§fn from(source: ImapClientError) -> Self
fn from(source: ImapClientError) -> Self
Converts to this type from the input type.
Source§impl From<JmapClientError> for EmailClientStdError
impl From<JmapClientError> for EmailClientStdError
Source§fn from(source: JmapClientError) -> Self
fn from(source: JmapClientError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirClientError> for EmailClientStdError
impl From<M2dirClientError> for EmailClientStdError
Source§fn from(source: M2dirClientError) -> Self
fn from(source: M2dirClientError) -> Self
Converts to this type from the input type.
Source§impl From<MaildirClientError> for EmailClientStdError
impl From<MaildirClientError> for EmailClientStdError
Source§fn from(source: MaildirClientError) -> Self
fn from(source: MaildirClientError) -> Self
Converts to this type from the input type.
Source§impl From<SmtpClientError> for EmailClientStdError
impl From<SmtpClientError> for EmailClientStdError
Source§fn from(source: SmtpClientError) -> Self
fn from(source: SmtpClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EmailClientStdError
impl !UnwindSafe for EmailClientStdError
impl Freeze for EmailClientStdError
impl Send for EmailClientStdError
impl Sync for EmailClientStdError
impl Unpin for EmailClientStdError
impl UnsafeUnpin for EmailClientStdError
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.