Enum imap::error::ParseError
source · pub enum ParseError {
Invalid(Vec<u8>),
Authentication(String, Option<DecodeError>),
DataNotUtf8(Vec<u8>, Utf8Error),
}
Expand description
An error occured while trying to parse a server response.
Variants§
Invalid(Vec<u8>)
Indicates an error parsing the status response. Such as OK, NO, and BAD.
Authentication(String, Option<DecodeError>)
The client could not find or decode the server’s authentication challenge.
DataNotUtf8(Vec<u8>, Utf8Error)
The client received data that was not UTF-8 encoded.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
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 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.