pub enum VariantParseError {
Io(Error),
DecodeString(FromUtf8Error),
InvalidSize {
ty: u8,
expected: usize,
actual: usize,
},
VariantFieldVersion(u8),
}
Expand description
Failures to parse a variant dictionary
Variants§
Io(Error)
Failed reading data from source
DecodeString(FromUtf8Error)
String field contained invalid UTF-8
InvalidSize
Some field was not the expected size for its type
Fields
VariantFieldVersion(u8)
Variant field version unsupported by this library, version too high?
Trait Implementations§
Source§impl Debug for VariantParseError
impl Debug for VariantParseError
Source§impl Display for VariantParseError
impl Display for VariantParseError
Source§impl Error for VariantParseError
impl Error for VariantParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for VariantParseError
impl From<Error> for VariantParseError
Source§impl From<FromUtf8Error> for VariantParseError
impl From<FromUtf8Error> for VariantParseError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariantParseError
impl !RefUnwindSafe for VariantParseError
impl Send for VariantParseError
impl Sync for VariantParseError
impl Unpin for VariantParseError
impl !UnwindSafe for VariantParseError
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