pub enum Error {
Io(IoError),
TlsHandshake(TlsHandshakeError<TcpStream>),
Tls(TlsError),
Bad(String),
No(String),
ConnectionLost,
Parse(ParseError),
Validate(ValidateError),
Append,
}
Expand description
A set of errors that can occur in the IMAP client
Variants
Io(IoError)
An io::Error
that occurred while trying to read or write to a network stream.
TlsHandshake(TlsHandshakeError<TcpStream>)
An error from the native_tls
library during the TLS handshake.
Tls(TlsError)
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
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<HandshakeError<TcpStream>> for Error
impl From<HandshakeError<TcpStream>> for Error
sourcefn from(err: TlsHandshakeError<TcpStream>) -> Error
fn from(err: TlsHandshakeError<TcpStream>) -> Error
Converts to this type from the input type.
sourceimpl<T> From<IntoInnerError<T>> for Error
impl<T> From<IntoInnerError<T>> for Error
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more