pub enum ImapMessageFetchStreamError {
No(String),
Bad(String),
Bye(String),
MissingTagged,
ShortBody,
UnexpectedLiteral,
}Expand description
Failure causes during the IMAP 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 the declared body octets were all streamed.
UnexpectedLiteral
A literal announcement appeared in the response trailer, where only plain lines are expected.
Trait Implementations§
Source§impl Clone for ImapMessageFetchStreamError
impl Clone for ImapMessageFetchStreamError
Source§fn clone(&self) -> ImapMessageFetchStreamError
fn clone(&self) -> ImapMessageFetchStreamError
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 ImapMessageFetchStreamError
impl Debug for ImapMessageFetchStreamError
Source§impl Error for ImapMessageFetchStreamError
impl Error for ImapMessageFetchStreamError
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<ImapMessageFetchStreamError> for ImapClientStdError
Available on crate feature client only.
impl From<ImapMessageFetchStreamError> for ImapClientStdError
Available on crate feature
client only.Source§fn from(source: ImapMessageFetchStreamError) -> Self
fn from(source: ImapMessageFetchStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImapMessageFetchStreamError
impl RefUnwindSafe for ImapMessageFetchStreamError
impl Send for ImapMessageFetchStreamError
impl Sync for ImapMessageFetchStreamError
impl Unpin for ImapMessageFetchStreamError
impl UnsafeUnpin for ImapMessageFetchStreamError
impl UnwindSafe for ImapMessageFetchStreamError
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