pub enum JmapClientError {
Show 16 variants
Io(Error),
MissingSession,
MailboxList(JmapMailboxListError),
EnvelopeList(JmapEnvelopeListError),
EnvelopeSearch(JmapEnvelopeSearchError),
FlagStore(JmapFlagStoreError),
MailboxCreate(JmapMailboxCreateError),
MailboxDelete(JmapMailboxDeleteError),
MessageAdd(JmapMessageAddError),
MessageCopy(JmapMessageCopyError),
MessageDelete(JmapMessageDeleteError),
MessageGet(JmapMessageGetError),
MessageMove(JmapMessageMoveError),
MessageSend(JmapMessageSendError),
WatchMailbox(JmapWatchMailboxError),
Inner(JmapClientStdError),
}Available on crate features
client and jmap only.Expand description
Errors surfaced by JmapClientStd while running a coroutine.
One variant per shared-API JMAP coroutine.
Variants§
Io(Error)
MissingSession
MailboxList(JmapMailboxListError)
EnvelopeList(JmapEnvelopeListError)
EnvelopeSearch(JmapEnvelopeSearchError)
Available on crate feature
search only.FlagStore(JmapFlagStoreError)
MailboxCreate(JmapMailboxCreateError)
MailboxDelete(JmapMailboxDeleteError)
MessageAdd(JmapMessageAddError)
MessageCopy(JmapMessageCopyError)
MessageDelete(JmapMessageDeleteError)
MessageGet(JmapMessageGetError)
MessageMove(JmapMessageMoveError)
MessageSend(JmapMessageSendError)
WatchMailbox(JmapWatchMailboxError)
Inner(JmapClientStdError)
Trait Implementations§
Source§impl Debug for JmapClientError
impl Debug for JmapClientError
Source§impl Display for JmapClientError
impl Display for JmapClientError
Source§impl Error for JmapClientError
impl Error for JmapClientError
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 JmapClientError
impl From<Error> for JmapClientError
Source§impl From<JmapClientError> for EmailClientStdError
Available on crate features imap or jmap or m2dir or maildir or smtp only.
impl From<JmapClientError> for EmailClientStdError
Available on crate features
imap or jmap or m2dir or maildir or smtp only.Source§fn from(source: JmapClientError) -> Self
fn from(source: JmapClientError) -> Self
Converts to this type from the input type.
Source§impl From<JmapClientStdError> for JmapClientError
impl From<JmapClientStdError> for JmapClientError
Source§fn from(source: InnerJmapClientStdError) -> Self
fn from(source: InnerJmapClientStdError) -> Self
Converts to this type from the input type.
Source§impl From<JmapEnvelopeListError> for JmapClientError
impl From<JmapEnvelopeListError> for JmapClientError
Source§fn from(source: JmapEnvelopeListError) -> Self
fn from(source: JmapEnvelopeListError) -> Self
Converts to this type from the input type.
Source§impl From<JmapEnvelopeSearchError> for JmapClientError
impl From<JmapEnvelopeSearchError> for JmapClientError
Source§fn from(source: JmapEnvelopeSearchError) -> Self
fn from(source: JmapEnvelopeSearchError) -> Self
Converts to this type from the input type.
Source§impl From<JmapFlagStoreError> for JmapClientError
impl From<JmapFlagStoreError> for JmapClientError
Source§fn from(source: JmapFlagStoreError) -> Self
fn from(source: JmapFlagStoreError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMailboxCreateError> for JmapClientError
impl From<JmapMailboxCreateError> for JmapClientError
Source§fn from(source: JmapMailboxCreateError) -> Self
fn from(source: JmapMailboxCreateError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMailboxDeleteError> for JmapClientError
impl From<JmapMailboxDeleteError> for JmapClientError
Source§fn from(source: JmapMailboxDeleteError) -> Self
fn from(source: JmapMailboxDeleteError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMailboxListError> for JmapClientError
impl From<JmapMailboxListError> for JmapClientError
Source§fn from(source: JmapMailboxListError) -> Self
fn from(source: JmapMailboxListError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageAddError> for JmapClientError
impl From<JmapMessageAddError> for JmapClientError
Source§fn from(source: JmapMessageAddError) -> Self
fn from(source: JmapMessageAddError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageCopyError> for JmapClientError
impl From<JmapMessageCopyError> for JmapClientError
Source§fn from(source: JmapMessageCopyError) -> Self
fn from(source: JmapMessageCopyError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageDeleteError> for JmapClientError
impl From<JmapMessageDeleteError> for JmapClientError
Source§fn from(source: JmapMessageDeleteError) -> Self
fn from(source: JmapMessageDeleteError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageGetError> for JmapClientError
impl From<JmapMessageGetError> for JmapClientError
Source§fn from(source: JmapMessageGetError) -> Self
fn from(source: JmapMessageGetError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageMoveError> for JmapClientError
impl From<JmapMessageMoveError> for JmapClientError
Source§fn from(source: JmapMessageMoveError) -> Self
fn from(source: JmapMessageMoveError) -> Self
Converts to this type from the input type.
Source§impl From<JmapMessageSendError> for JmapClientError
impl From<JmapMessageSendError> for JmapClientError
Source§fn from(source: JmapMessageSendError) -> Self
fn from(source: JmapMessageSendError) -> Self
Converts to this type from the input type.
Source§impl From<JmapWatchMailboxError> for JmapClientError
impl From<JmapWatchMailboxError> for JmapClientError
Source§fn from(source: JmapWatchMailboxError) -> Self
fn from(source: JmapWatchMailboxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for JmapClientError
impl !UnwindSafe for JmapClientError
impl Freeze for JmapClientError
impl Send for JmapClientError
impl Sync for JmapClientError
impl Unpin for JmapClientError
impl UnsafeUnpin for JmapClientError
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.