pub enum ImapMessageGetError {
Select(ImapMailboxSelectError),
Fetch(ImapMessageFetchError),
InvalidMailbox(String),
InvalidUid(String),
EmptyUidSet,
EmptyBody,
ResumedAfterDone,
}Available on crate feature
imap only.Expand description
Errors produced by ImapMessageGet.
Variants§
Select(ImapMailboxSelectError)
Fetch(ImapMessageFetchError)
InvalidMailbox(String)
InvalidUid(String)
EmptyUidSet
EmptyBody
ResumedAfterDone
Trait Implementations§
Source§impl Debug for ImapMessageGetError
impl Debug for ImapMessageGetError
Source§impl Display for ImapMessageGetError
impl Display for ImapMessageGetError
Source§impl Error for ImapMessageGetError
impl Error for ImapMessageGetError
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<ImapMailboxSelectError> for ImapMessageGetError
impl From<ImapMailboxSelectError> for ImapMessageGetError
Source§fn from(source: ImapMailboxSelectError) -> Self
fn from(source: ImapMailboxSelectError) -> Self
Converts to this type from the input type.
Source§impl From<ImapMessageFetchError> for ImapMessageGetError
impl From<ImapMessageFetchError> for ImapMessageGetError
Source§fn from(source: ImapMessageFetchError) -> Self
fn from(source: ImapMessageFetchError) -> Self
Converts to this type from the input type.
Source§impl From<ImapMessageGetError> for ImapClientError
Available on crate feature client only.
impl From<ImapMessageGetError> for ImapClientError
Available on crate feature
client only.Source§fn from(source: ImapMessageGetError) -> Self
fn from(source: ImapMessageGetError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidMailboxName> for ImapMessageGetError
impl From<InvalidMailboxName> for ImapMessageGetError
Source§fn from(err: InvalidMailboxName) -> Self
fn from(err: InvalidMailboxName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUidSet> for ImapMessageGetError
impl From<InvalidUidSet> for ImapMessageGetError
Source§fn from(err: InvalidUidSet) -> Self
fn from(err: InvalidUidSet) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImapMessageGetError
impl RefUnwindSafe for ImapMessageGetError
impl Send for ImapMessageGetError
impl Sync for ImapMessageGetError
impl Unpin for ImapMessageGetError
impl UnsafeUnpin for ImapMessageGetError
impl UnwindSafe for ImapMessageGetError
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.