pub enum ImapMessageSortError {
No(String),
Bad(String),
Bye(String),
MissingTagged,
MissingData,
InvalidSequenceSet,
Send(ImapSendError),
Search(ImapMessageSearchError),
Fetch(ImapMessageFetchError),
}Expand description
Failure causes during the IMAP SORT flow.
Variants§
No(String)
The server rejected the SORT command with a NO response.
Bad(String)
The server rejected the SORT command with a BAD response.
Bye(String)
The server closed the connection with a BYE response.
MissingTagged
The server never answered with a tagged response.
MissingData
The server returned OK without any SORT data.
InvalidSequenceSet
A chunk of searched ids could not form a valid sequence set.
Send(ImapSendError)
The underlying send sub-coroutine failed.
Search(ImapMessageSearchError)
The SEARCH step of the fallback failed.
Fetch(ImapMessageFetchError)
The FETCH step of the fallback failed.
Trait Implementations§
Source§impl Clone for ImapMessageSortError
impl Clone for ImapMessageSortError
Source§fn clone(&self) -> ImapMessageSortError
fn clone(&self) -> ImapMessageSortError
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 ImapMessageSortError
impl Debug for ImapMessageSortError
Source§impl Display for ImapMessageSortError
impl Display for ImapMessageSortError
Source§impl Error for ImapMessageSortError
impl Error for ImapMessageSortError
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<ImapMessageFetchError> for ImapMessageSortError
impl From<ImapMessageFetchError> for ImapMessageSortError
Source§fn from(source: ImapMessageFetchError) -> Self
fn from(source: ImapMessageFetchError) -> Self
Converts to this type from the input type.
Source§impl From<ImapMessageSearchError> for ImapMessageSortError
impl From<ImapMessageSearchError> for ImapMessageSortError
Source§fn from(source: ImapMessageSearchError) -> Self
fn from(source: ImapMessageSearchError) -> Self
Converts to this type from the input type.
Source§impl From<ImapMessageSortError> for ImapClientStdError
Available on crate feature client only.
impl From<ImapMessageSortError> for ImapClientStdError
Available on crate feature
client only.Source§fn from(source: ImapMessageSortError) -> Self
fn from(source: ImapMessageSortError) -> 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.
Auto Trait Implementations§
impl Freeze for ImapMessageSortError
impl RefUnwindSafe for ImapMessageSortError
impl Send for ImapMessageSortError
impl Sync for ImapMessageSortError
impl Unpin for ImapMessageSortError
impl UnsafeUnpin for ImapMessageSortError
impl UnwindSafe for ImapMessageSortError
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