pub enum ParseError {
Invalid(Vec<u8>),
Unexpected(String),
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.
Unexpected(String)
An unexpected response was encountered.
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.
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more