pub enum ImapClientStdError {
Show 50 variants
Greeting(ImapGreetingGetError),
Login(ImapLoginError),
AuthLogin(ImapAuthLoginError),
AuthPlain(ImapAuthPlainError),
AuthAnonymous(ImapAuthAnonymousError),
AuthOAuthBearer(ImapAuthOauthbearerError),
AuthXOAuth2(ImapAuthXoauth2Error),
AuthScramSha256(ImapAuthScramSha256Error),
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),
UrlMissingHost(String),
UrlUnsupportedScheme(String, String),
StartTlsOverTls,
InvalidLoginCredentials(ValidationError),
QresyncNotSupported,
InvalidModSeq,
}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.
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.
UrlMissingHost(String)
native-tls or rustls-aws or rustls-ring only.The connect URL has no host to connect to.
UrlUnsupportedScheme(String, String)
native-tls or rustls-aws or rustls-ring only.The connect URL scheme is neither imap nor imaps.
StartTlsOverTls
native-tls or rustls-aws or rustls-ring only.STARTTLS was requested on an already-TLS imaps connection.
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.
Trait Implementations§
Source§impl Debug for ImapClientStdError
impl Debug for ImapClientStdError
Source§impl Display for ImapClientStdError
impl Display for ImapClientStdError
Source§impl Error for ImapClientStdError
impl Error for ImapClientStdError
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()