Enum imap::error::ParseError
source · pub enum ParseError {
Invalid(Vec<u8>),
Unexpected(String),
Authentication(String, Option<DecodeError>),
DataNotUtf8(FromUtf8Error),
}
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.
Unexpected(String)
An unexpected response was encountered.
Authentication(String, Option<DecodeError>)
The client could not find or decode the server’s authentication challenge.
DataNotUtf8(FromUtf8Error)
The client receive data that was not UTF-8 encoded.
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl Display for ParseError
impl Display for ParseError
sourceimpl Error for ParseError
impl Error for ParseError
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<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 ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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