pub enum ImapClientError {
Show 49 variants
Greeting(ImapGreetingGetError),
Login(ImapLoginError),
AuthLogin(ImapAuthLoginError),
AuthPlain(ImapAuthPlainError),
AuthAnonymous(ImapAuthAnonymousError),
AuthOAuthBearer(ImapAuthOauthbearerError),
AuthXOAuth2(ImapAuthXoauth2Error),
AuthScramSha256(ImapAuthScramSha256Error),
SessionOpen(ImapSessionOpenError),
Logout(ImapLogoutError),
Capability(ImapCapabilityGetError),
Noop(ImapNoopError),
Raw(ImapRawError),
ServerId(ImapServerIdError),
ExtensionEnable(ImapExtensionEnableError),
MailboxList(ImapMailboxListError),
MailboxLsub(ImapMailboxLsubError),
MailboxStatus(ImapMailboxStatusError),
MailboxCreate(ImapMailboxCreateError),
MailboxDelete(ImapMailboxDeleteError),
MailboxRename(ImapMailboxRenameError),
MailboxSubscribe(ImapMailboxSubscribeError),
MailboxUnsubscribe(ImapMailboxUnsubscribeError),
MailboxSelect(ImapMailboxSelectError),
MailboxExamine(ImapMailboxExamineError),
MailboxWatch(ImapMailboxWatchError),
MailboxClose(ImapMailboxCloseError),
MailboxUnselect(ImapMailboxUnselectError),
MailboxCheck(ImapMailboxCheckError),
MailboxExpunge(ImapMailboxExpungeError),
MessageExpungeUid(ImapMessageExpungeUidError),
MessageSort(ImapMessageSortError),
MessageFetch(ImapMessageFetchError),
MessageFetchStream(ImapMessageFetchStreamError),
MessageFetchStreamBatch(ImapMessageFetchStreamBatchError),
MessageSearch(ImapMessageSearchError),
MessageStore(ImapMessageStoreError),
MessageCopy(ImapMessageCopyError),
MessageMove(ImapMessageMoveError),
MessageAppend(ImapMessageAppendError),
MessageAppendStream(ImapMessageAppendStreamError),
MessageThread(ImapMessageThreadError),
Io(Error),
StartTls(ImapStartTlsError),
Tls(Error),
InvalidLoginCredentials(ValidationError),
QresyncNotSupported,
InvalidModSeq,
Transport(Box<dyn Error + Send + Sync>),
}client only.Expand description
Failure causes returned by ImapClientStd.
Variants§
Greeting(ImapGreetingGetError)
The greeting coroutine failed.
Login(ImapLoginError)
The LOGIN coroutine failed.
AuthLogin(ImapAuthLoginError)
The SASL LOGIN coroutine failed.
AuthPlain(ImapAuthPlainError)
The SASL PLAIN coroutine failed.
AuthAnonymous(ImapAuthAnonymousError)
The SASL ANONYMOUS coroutine failed.
AuthOAuthBearer(ImapAuthOauthbearerError)
The SASL OAUTHBEARER coroutine failed.
AuthXOAuth2(ImapAuthXoauth2Error)
The SASL XOAUTH2 coroutine failed.
AuthScramSha256(ImapAuthScramSha256Error)
scram only.The SASL SCRAM-SHA-256 coroutine failed.
SessionOpen(ImapSessionOpenError)
The session-opening coroutine failed.
Logout(ImapLogoutError)
The LOGOUT coroutine failed.
Capability(ImapCapabilityGetError)
The CAPABILITY coroutine failed.
Noop(ImapNoopError)
The NOOP coroutine failed.
Raw(ImapRawError)
The raw-command coroutine failed.
ServerId(ImapServerIdError)
The ID coroutine failed.
ExtensionEnable(ImapExtensionEnableError)
The ENABLE coroutine failed.
MailboxList(ImapMailboxListError)
The LIST coroutine failed.
MailboxLsub(ImapMailboxLsubError)
The LSUB coroutine failed.
MailboxStatus(ImapMailboxStatusError)
The STATUS coroutine failed.
MailboxCreate(ImapMailboxCreateError)
The CREATE coroutine failed.
MailboxDelete(ImapMailboxDeleteError)
The DELETE coroutine failed.
MailboxRename(ImapMailboxRenameError)
The RENAME coroutine failed.
MailboxSubscribe(ImapMailboxSubscribeError)
The SUBSCRIBE coroutine failed.
MailboxUnsubscribe(ImapMailboxUnsubscribeError)
The UNSUBSCRIBE coroutine failed.
MailboxSelect(ImapMailboxSelectError)
The SELECT coroutine failed.
MailboxExamine(ImapMailboxExamineError)
The EXAMINE coroutine failed.
MailboxWatch(ImapMailboxWatchError)
The mailbox watcher failed.
MailboxClose(ImapMailboxCloseError)
The CLOSE coroutine failed.
MailboxUnselect(ImapMailboxUnselectError)
The UNSELECT coroutine failed.
MailboxCheck(ImapMailboxCheckError)
The CHECK coroutine failed.
MailboxExpunge(ImapMailboxExpungeError)
The EXPUNGE coroutine failed.
MessageExpungeUid(ImapMessageExpungeUidError)
The UID EXPUNGE coroutine failed.
MessageSort(ImapMessageSortError)
The SORT coroutine failed.
MessageFetch(ImapMessageFetchError)
The FETCH coroutine failed.
MessageFetchStream(ImapMessageFetchStreamError)
The streaming FETCH coroutine failed.
MessageFetchStreamBatch(ImapMessageFetchStreamBatchError)
The batched streaming FETCH coroutine failed.
MessageSearch(ImapMessageSearchError)
The SEARCH coroutine failed.
MessageStore(ImapMessageStoreError)
The STORE coroutine failed.
MessageCopy(ImapMessageCopyError)
The COPY coroutine failed.
MessageMove(ImapMessageMoveError)
The MOVE coroutine failed.
MessageAppend(ImapMessageAppendError)
The buffered APPEND coroutine failed.
MessageAppendStream(ImapMessageAppendStreamError)
The streaming APPEND coroutine failed.
MessageThread(ImapMessageThreadError)
The THREAD coroutine failed.
Io(Error)
Reading from or writing to the stream failed.
StartTls(ImapStartTlsError)
The STARTTLS coroutine failed.
Tls(Error)
native-tls or rustls-aws or rustls-ring only.Opening the TCP/TLS connection failed.
InvalidLoginCredentials(ValidationError)
The LOGIN user or password failed imap-types validation.
QresyncNotSupported
QRESYNC was requested but the capability list lacks it.
InvalidModSeq
A QRESYNC SELECT was requested with a zero mod-sequence.
Transport(Box<dyn Error + Send + Sync>)
The implementor’s own transport failed.
ImapClientStd reports I/O through Self::Io; this variant
exists for implementors whose failures are something else, such
as a JNI upcall or a runtime-specific socket error.
Trait Implementations§
Source§impl Debug for ImapClientError
impl Debug for ImapClientError
Source§impl Display for ImapClientError
impl Display for ImapClientError
Source§impl Error for ImapClientError
impl Error for ImapClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()