Enum imap::error::Error
[−]
[src]
pub enum Error { Io(IoError), TlsHandshake(TlsHandshakeError<TcpStream>), Tls(TlsError), BadResponse(Vec<String>), NoResponse(Vec<String>), ConnectionLost, Parse(ParseError), Append, }
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.
BadResponse(Vec<String>)
A BAD response from the IMAP server.
NoResponse(Vec<String>)
A NO response from the IMAP server.
ConnectionLost
The connection was terminated unexpectedly.
Parse(ParseError)
Append
Trait Implementations
impl Debug for Error
[src]
impl From<IoError> for Error
[src]
impl<T> From<BufError<T>> for Error
[src]
impl From<TlsHandshakeError<TcpStream>> for Error
[src]
fn from(err: TlsHandshakeError<TcpStream>) -> Error
[src]
Performs the conversion.
impl From<TlsError> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more