Skip to main content

ImapClientStdError

Enum ImapClientStdError 

Source
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,
}
Available on crate feature 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)

Available on crate feature 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)

Available on crate features native-tls or rustls-aws or rustls-ring only.

Opening the TCP/TLS connection failed.

§

UrlMissingHost(String)

Available on crate features native-tls or rustls-aws or rustls-ring only.

The connect URL has no host to connect to.

§

UrlUnsupportedScheme(String, String)

Available on crate features native-tls or rustls-aws or rustls-ring only.

The connect URL scheme is neither imap nor imaps.

§

StartTlsOverTls

Available on crate features 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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ImapClientStdError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ImapClientStdError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for ImapClientStdError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ImapClientStdError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthAnonymousError> for ImapClientStdError

Source§

fn from(source: ImapAuthAnonymousError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthLoginError> for ImapClientStdError

Source§

fn from(source: ImapAuthLoginError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthOauthbearerError> for ImapClientStdError

Source§

fn from(source: ImapAuthOauthbearerError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthPlainError> for ImapClientStdError

Source§

fn from(source: ImapAuthPlainError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthScramSha256Error> for ImapClientStdError

Source§

fn from(source: ImapAuthScramSha256Error) -> Self

Converts to this type from the input type.
Source§

impl From<ImapAuthXoauth2Error> for ImapClientStdError

Source§

fn from(source: ImapAuthXoauth2Error) -> Self

Converts to this type from the input type.
Source§

impl From<ImapCapabilityGetError> for ImapClientStdError

Source§

fn from(source: ImapCapabilityGetError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapExtensionEnableError> for ImapClientStdError

Source§

fn from(source: ImapExtensionEnableError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapGreetingGetError> for ImapClientStdError

Source§

fn from(source: ImapGreetingGetError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapLoginError> for ImapClientStdError

Source§

fn from(source: ImapLoginError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapLogoutError> for ImapClientStdError

Source§

fn from(source: ImapLogoutError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxCheckError> for ImapClientStdError

Source§

fn from(source: ImapMailboxCheckError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxCloseError> for ImapClientStdError

Source§

fn from(source: ImapMailboxCloseError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxCreateError> for ImapClientStdError

Source§

fn from(source: ImapMailboxCreateError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxDeleteError> for ImapClientStdError

Source§

fn from(source: ImapMailboxDeleteError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxExamineError> for ImapClientStdError

Source§

fn from(source: ImapMailboxExamineError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxExpungeError> for ImapClientStdError

Source§

fn from(source: ImapMailboxExpungeError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxListError> for ImapClientStdError

Source§

fn from(source: ImapMailboxListError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxLsubError> for ImapClientStdError

Source§

fn from(source: ImapMailboxLsubError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxRenameError> for ImapClientStdError

Source§

fn from(source: ImapMailboxRenameError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxSelectError> for ImapClientStdError

Source§

fn from(source: ImapMailboxSelectError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxStatusError> for ImapClientStdError

Source§

fn from(source: ImapMailboxStatusError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxSubscribeError> for ImapClientStdError

Source§

fn from(source: ImapMailboxSubscribeError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxUnselectError> for ImapClientStdError

Source§

fn from(source: ImapMailboxUnselectError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxUnsubscribeError> for ImapClientStdError

Source§

fn from(source: ImapMailboxUnsubscribeError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMailboxWatchError> for ImapClientStdError

Source§

fn from(source: ImapMailboxWatchError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageAppendError> for ImapClientStdError

Source§

fn from(source: ImapMessageAppendError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageAppendStreamError> for ImapClientStdError

Source§

fn from(source: ImapMessageAppendStreamError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageCopyError> for ImapClientStdError

Source§

fn from(source: ImapMessageCopyError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageExpungeUidError> for ImapClientStdError

Source§

fn from(source: ImapMessageExpungeUidError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageFetchError> for ImapClientStdError

Source§

fn from(source: ImapMessageFetchError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageFetchStreamBatchError> for ImapClientStdError

Source§

fn from(source: ImapMessageFetchStreamBatchError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageFetchStreamError> for ImapClientStdError

Source§

fn from(source: ImapMessageFetchStreamError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageMoveError> for ImapClientStdError

Source§

fn from(source: ImapMessageMoveError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageSearchError> for ImapClientStdError

Source§

fn from(source: ImapMessageSearchError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageSortError> for ImapClientStdError

Source§

fn from(source: ImapMessageSortError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageStoreError> for ImapClientStdError

Source§

fn from(source: ImapMessageStoreError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapMessageThreadError> for ImapClientStdError

Source§

fn from(source: ImapMessageThreadError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapNoopError> for ImapClientStdError

Source§

fn from(source: ImapNoopError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapRawError> for ImapClientStdError

Source§

fn from(source: ImapRawError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapServerIdError> for ImapClientStdError

Source§

fn from(source: ImapServerIdError) -> Self

Converts to this type from the input type.
Source§

impl From<ImapStartTlsError> for ImapClientStdError

Source§

fn from(source: ImapStartTlsError) -> Self

Converts to this type from the input type.
Source§

impl From<ValidationError> for ImapClientStdError

Source§

fn from(source: ValidationError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.