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

An io::Error that occurred while trying to read or write to a network stream.

An error from the native_tls library during the TLS handshake.

An error from the native_tls library while managing the socket.

A BAD response from the IMAP server.

A NO response from the IMAP server.

The connection was terminated unexpectedly.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<IoError> for Error
[src]

[src]

Performs the conversion.

impl<T> From<BufError<T>> for Error
[src]

[src]

Performs the conversion.

impl From<TlsHandshakeError<TcpStream>> for Error
[src]

[src]

Performs the conversion.

impl From<TlsError> for Error
[src]

[src]

Performs the conversion.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more