Enum miden_crypto::utils::DeserializationError
source · pub enum DeserializationError {
InvalidValue(String),
UnexpectedEOF,
UnconsumedBytes,
UnknownError(String),
}
Expand description
Defines errors which can occur during deserialization.
Variants§
InvalidValue(String)
Bytes in the input do not represent a valid value.
UnexpectedEOF
An end of input was reached before a valid value could be deserialized.
UnconsumedBytes
Deserialization has finished but not all bytes have been consumed.
UnknownError(String)
An unknown error has occurred.
Trait Implementations§
source§impl Debug for DeserializationError
impl Debug for DeserializationError
source§impl Display for DeserializationError
impl Display for DeserializationError
source§impl PartialEq for DeserializationError
impl PartialEq for DeserializationError
source§fn eq(&self, other: &DeserializationError) -> bool
fn eq(&self, other: &DeserializationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeserializationError
impl StructuralEq for DeserializationError
impl StructuralPartialEq for DeserializationError
Auto Trait Implementations§
impl RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl UnwindSafe for DeserializationError
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