pub enum ImapSendError {
Eof,
DecodingFailure(Secret<Box<[u8]>>),
MessageIsPoisoned(Secret<Box<[u8]>>),
MessageTooLong(Secret<Box<[u8]>>),
}Expand description
Failure causes raised by ImapSend.
Variants§
Eof
The stream reached EOF before the tagged response arrived.
DecodingFailure(Secret<Box<[u8]>>)
A response line could not be decoded; carries the raw bytes.
MessageIsPoisoned(Secret<Box<[u8]>>)
The Fragmentizer poisoned the message after a framing error;
carries the raw bytes.
MessageTooLong(Secret<Box<[u8]>>)
The response message exceeded the Fragmentizer size limit;
carries the raw bytes.
Trait Implementations§
Source§impl Clone for ImapSendError
impl Clone for ImapSendError
Source§fn clone(&self) -> ImapSendError
fn clone(&self) -> ImapSendError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImapSendError
impl Debug for ImapSendError
Source§impl Display for ImapSendError
impl Display for ImapSendError
Source§impl Error for ImapSendError
impl Error for ImapSendError
1.30.0 · 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<ImapSendError> for ImapIdleError
impl From<ImapSendError> for ImapIdleError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapServerIdError
impl From<ImapSendError> for ImapServerIdError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageAppendError
impl From<ImapSendError> for ImapMessageAppendError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageAppendStreamError
impl From<ImapSendError> for ImapMessageAppendStreamError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapCapabilityGetError
impl From<ImapSendError> for ImapCapabilityGetError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxCheckError
impl From<ImapSendError> for ImapMailboxCheckError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxCloseError
impl From<ImapSendError> for ImapMailboxCloseError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageCopyError
impl From<ImapSendError> for ImapMessageCopyError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxCreateError
impl From<ImapSendError> for ImapMailboxCreateError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxDeleteError
impl From<ImapSendError> for ImapMailboxDeleteError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxExamineError
impl From<ImapSendError> for ImapMailboxExamineError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxExpungeError
impl From<ImapSendError> for ImapMailboxExpungeError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageFetchError
impl From<ImapSendError> for ImapMessageFetchError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxListError
impl From<ImapSendError> for ImapMailboxListError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapLoginError
impl From<ImapSendError> for ImapLoginError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapLogoutError
impl From<ImapSendError> for ImapLogoutError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxLsubError
impl From<ImapSendError> for ImapMailboxLsubError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapNoopError
impl From<ImapSendError> for ImapNoopError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxRenameError
impl From<ImapSendError> for ImapMailboxRenameError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageSearchError
impl From<ImapSendError> for ImapMessageSearchError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxSelectError
impl From<ImapSendError> for ImapMailboxSelectError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxStatusError
impl From<ImapSendError> for ImapMailboxStatusError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageStoreError
impl From<ImapSendError> for ImapMessageStoreError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxSubscribeError
impl From<ImapSendError> for ImapMailboxSubscribeError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxUnsubscribeError
impl From<ImapSendError> for ImapMailboxUnsubscribeError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMailboxUnselectError
impl From<ImapSendError> for ImapMailboxUnselectError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAppendUidError
impl From<ImapSendError> for ImapAppendUidError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageExpungeUidError
impl From<ImapSendError> for ImapMessageExpungeUidError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapExtensionEnableError
impl From<ImapSendError> for ImapExtensionEnableError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageSortError
impl From<ImapSendError> for ImapMessageSortError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageThreadError
impl From<ImapSendError> for ImapMessageThreadError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapMessageMoveError
impl From<ImapSendError> for ImapMessageMoveError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthOauthbearerError
impl From<ImapSendError> for ImapAuthOauthbearerError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthScramSha256Error
Available on crate feature scram only.
impl From<ImapSendError> for ImapAuthScramSha256Error
Available on crate feature
scram only.Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthAnonymousError
impl From<ImapSendError> for ImapAuthAnonymousError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthLoginError
impl From<ImapSendError> for ImapAuthLoginError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthPlainError
impl From<ImapSendError> for ImapAuthPlainError
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Source§impl From<ImapSendError> for ImapAuthXoauth2Error
impl From<ImapSendError> for ImapAuthXoauth2Error
Source§fn from(source: ImapSendError) -> Self
fn from(source: ImapSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImapSendError
impl RefUnwindSafe for ImapSendError
impl Send for ImapSendError
impl Sync for ImapSendError
impl Unpin for ImapSendError
impl UnsafeUnpin for ImapSendError
impl UnwindSafe for ImapSendError
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