pub enum ParseError {
MissingField(&'static str),
RowLengthMismatch,
WrongValue(WrongValue),
InvalidValue(ValueType, Vec<u8>),
ValueOutOfBounds(Value),
UnknownBitflags(InvalidFlags),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
}
Variants§
MissingField(&'static str)
RowLengthMismatch
WrongValue(WrongValue)
InvalidValue(ValueType, Vec<u8>)
ValueOutOfBounds(Value)
UnknownBitflags(InvalidFlags)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
Implementations§
Source§impl ParseError
impl ParseError
pub fn wrong_value(expected: ValueType, got: Value) -> Self
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl From<FromUtf8Error> for ParseError
impl From<FromUtf8Error> for ParseError
Source§fn from(value: FromUtf8Error) -> Self
fn from(value: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidFlags> for ParseError
impl From<InvalidFlags> for ParseError
Source§fn from(value: InvalidFlags) -> Self
fn from(value: InvalidFlags) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for ProtocolError
impl From<ParseError> for ProtocolError
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
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