pub enum ImapMessageFetchStreamBatchError {
No(String),
Bad(String),
Bye(String),
MissingTagged,
ShortBody,
UidMissing,
}Expand description
Failure causes during the batched FETCH body-stream flow.
Variants§
No(String)
The server rejected the command with a NO response.
Bad(String)
The server rejected the command with a BAD response.
Bye(String)
The server closed the session with an untagged BYE.
MissingTagged
The exchange ended without a tagged response from the server.
ShortBody
The socket reached EOF before a message’s declared body octets were all streamed.
UidMissing
A body’s FETCH line carried no parseable UID, so the body could not be
attributed to a message. The caller should fall back to per-message
fetches rather than risk misrouting.
Trait Implementations§
Source§impl Clone for ImapMessageFetchStreamBatchError
impl Clone for ImapMessageFetchStreamBatchError
Source§fn clone(&self) -> ImapMessageFetchStreamBatchError
fn clone(&self) -> ImapMessageFetchStreamBatchError
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 Error for ImapMessageFetchStreamBatchError
impl Error for ImapMessageFetchStreamBatchError
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<ImapMessageFetchStreamBatchError> for ImapClientStdError
Available on crate feature client only.
impl From<ImapMessageFetchStreamBatchError> for ImapClientStdError
Available on crate feature
client only.Source§fn from(source: ImapMessageFetchStreamBatchError) -> Self
fn from(source: ImapMessageFetchStreamBatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImapMessageFetchStreamBatchError
impl RefUnwindSafe for ImapMessageFetchStreamBatchError
impl Send for ImapMessageFetchStreamBatchError
impl Sync for ImapMessageFetchStreamBatchError
impl Unpin for ImapMessageFetchStreamBatchError
impl UnsafeUnpin for ImapMessageFetchStreamBatchError
impl UnwindSafe for ImapMessageFetchStreamBatchError
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