pub enum DeserializeFailure {
Show 19 variants
BadAddressType(u8),
BreakInDefiniteLen,
CBOR(Error),
DefiniteLenMismatch(u64, Option<u64>),
DuplicateKey(Key),
EndingBreakMissing,
ExpectedNull,
ExpectedBool,
FixedValueMismatch {
found: Key,
expected: Key,
},
MandatoryFieldMissing(Key),
Metadata(JsError),
NoVariantMatched,
OutOfRange {
min: usize,
max: usize,
found: usize,
},
PublicKeyError(PublicKeyError),
SignatureError(SignatureError),
TagMismatch {
found: u64,
expected: u64,
},
UnknownKey(Key),
UnexpectedKeyType(Type),
VariableLenNatDecodeFailed,
}
Variants
BadAddressType(u8)
BreakInDefiniteLen
CBOR(Error)
DefiniteLenMismatch(u64, Option<u64>)
DuplicateKey(Key)
EndingBreakMissing
ExpectedNull
ExpectedBool
FixedValueMismatch
MandatoryFieldMissing(Key)
Metadata(JsError)
NoVariantMatched
OutOfRange
PublicKeyError(PublicKeyError)
SignatureError(SignatureError)
TagMismatch
UnknownKey(Key)
UnexpectedKeyType(Type)
VariableLenNatDecodeFailed
Trait Implementations
sourceimpl Debug for DeserializeFailure
impl Debug for DeserializeFailure
sourceimpl From<DeserializeFailure> for DeserializeError
impl From<DeserializeFailure> for DeserializeError
sourcefn from(failure: DeserializeFailure) -> DeserializeError
fn from(failure: DeserializeFailure) -> DeserializeError
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DeserializeFailure
impl Send for DeserializeFailure
impl Sync for DeserializeFailure
impl Unpin for DeserializeFailure
impl UnwindSafe for DeserializeFailure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more