Enum alkahest::DeserializeError
source · pub enum DeserializeError {
OutOfBounds,
WrongAddress,
WrongLength,
InvalidUsize(u32),
InvalidIsize(FixedIsizeType),
WrongVariant(u32),
NonUtf8(Utf8Error),
IntegerOverflow,
Incompatible,
}Expand description
Error that can occur during deserialization.
Variants§
OutOfBounds
Indicates that input buffer is smaller than expected value length.
WrongAddress
Relative address is invalid.
WrongLength
Incorrect expected value length.
InvalidUsize(u32)
Size value exceeds the maximum usize for current platform.
InvalidIsize(FixedIsizeType)
Size value exceeds the maximum isize for current platform.
WrongVariant(u32)
Enum variant is invalid.
NonUtf8(Utf8Error)
Bytes slice is not UTF8 where str is expected.
IntegerOverflow
Signals that deserialization of integer value fails due to destination type being too small.
This can happen when deserializing Vlq formula
into fixed-size integer type.
Incompatible
Data is incompatible with the type to be deserialized.
Trait Implementations§
source§impl Clone for DeserializeError
impl Clone for DeserializeError
source§fn clone(&self) -> DeserializeError
fn clone(&self) -> DeserializeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DeserializeError
impl Debug for DeserializeError
source§impl Display for DeserializeError
impl Display for DeserializeError
source§impl Error for DeserializeError
impl Error for DeserializeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()