pub enum DeError {
InvalidMagic,
InvalidDataType(u32),
InvalidIntegerLen(usize),
InvalidBoolLen(usize),
InvalidVectorLen(usize),
Io(Error),
}Expand description
Deserialization error that can happen while deserializing
Variants§
InvalidMagic
Invalid magic signature for the file.
InvalidDataType(u32)
Invalid data type while parsing.
InvalidIntegerLen(usize)
Invalid data size for a number.
InvalidBoolLen(usize)
Invalid data size for a boolean.
InvalidVectorLen(usize)
Invalid vector length, not a multiple a 4 bytes (f32).
Io(Error)
IO error while unpacking.
Trait Implementations§
Source§impl Error for DeError
impl Error for DeError
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()
Auto Trait Implementations§
impl Freeze for DeError
impl !RefUnwindSafe for DeError
impl Send for DeError
impl Sync for DeError
impl Unpin for DeError
impl !UnwindSafe for DeError
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