pub enum DeserializeFailure {
Show 23 variants
BadAddressType(u8),
BreakInDefiniteLen,
CBOR(Error),
DefiniteLenMismatch(u64, Option<u64>),
DuplicateKey(Key),
EndingBreakMissing,
ExpectedNull,
ExpectedBool,
FixedValueMismatch {
found: Key,
expected: Key,
},
FixedValuesMismatch {
found: Key,
expected: Vec<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,
IoError(String),
ExpectedType(String, Type),
CustomError(String),
}Variants§
BadAddressType(u8)
BreakInDefiniteLen
CBOR(Error)
DefiniteLenMismatch(u64, Option<u64>)
DuplicateKey(Key)
EndingBreakMissing
ExpectedNull
ExpectedBool
FixedValueMismatch
FixedValuesMismatch
MandatoryFieldMissing(Key)
Metadata(JsError)
NoVariantMatched
OutOfRange
PublicKeyError(PublicKeyError)
SignatureError(SignatureError)
TagMismatch
UnknownKey(Key)
UnexpectedKeyType(Type)
VariableLenNatDecodeFailed
IoError(String)
ExpectedType(String, Type)
CustomError(String)
Trait Implementations§
Source§impl Debug for DeserializeFailure
impl Debug for DeserializeFailure
Source§impl From<DeserializeFailure> for DeserializeError
impl From<DeserializeFailure> for DeserializeError
Source§fn from(failure: DeserializeFailure) -> DeserializeError
fn from(failure: DeserializeFailure) -> DeserializeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeserializeFailure
impl !RefUnwindSafe for DeserializeFailure
impl Send for DeserializeFailure
impl Sync for DeserializeFailure
impl Unpin for DeserializeFailure
impl !UnwindSafe for DeserializeFailure
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more