pub enum Error {
Io(Error),
TlsHandshake(HandshakeError<TcpStream>),
Tls(Error),
Bad(String),
No(String),
ConnectionLost,
Parse(ParseError),
Validate(ValidateError),
Append,
// some variants omitted
}
Expand description
A set of errors that can occur in the IMAP client
Variants§
Io(Error)
An io::Error
that occurred while trying to read or write to a network stream.
TlsHandshake(HandshakeError<TcpStream>)
An error from the native_tls
library during the TLS handshake.
Tls(Error)
An error from the native_tls
library while managing the socket.
Bad(String)
A BAD response from the IMAP server.
No(String)
A NO response from the IMAP server.
ConnectionLost
The connection was terminated unexpectedly.
Parse(ParseError)
Error parsing a server response.
Validate(ValidateError)
Command inputs were not valid IMAP strings.
Append
Error appending an e-mail.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<T> From<IntoInnerError<T>> for Error
impl<T> From<IntoInnerError<T>> for Error
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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