pub enum StoreDecodeError {
TypeMismatch {
context: String,
expected: String,
},
UnknownTypeId,
UnknownVariant {
type_name: String,
ordinal: u64,
},
UnknownUnionDiscriminant {
type_name: String,
discriminant: u64,
},
Bitpack(DecodeError),
TypeNotFound {
type_name: String,
},
RecursionLimit,
}Expand description
Errors from schema-driven decoding (bitpack bytes -> Value).
Variants§
TypeMismatch
UnknownTypeId
UnknownVariant
UnknownUnionDiscriminant
Bitpack(DecodeError)
TypeNotFound
RecursionLimit
Trait Implementations§
Source§impl Clone for StoreDecodeError
impl Clone for StoreDecodeError
Source§fn clone(&self) -> StoreDecodeError
fn clone(&self) -> StoreDecodeError
Returns a duplicate 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 StoreDecodeError
impl Debug for StoreDecodeError
Source§impl Display for StoreDecodeError
impl Display for StoreDecodeError
Source§impl Error for StoreDecodeError
impl Error for StoreDecodeError
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()
Source§impl From<DecodeError> for StoreDecodeError
impl From<DecodeError> for StoreDecodeError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreDecodeError
impl PartialEq for StoreDecodeError
impl StructuralPartialEq for StoreDecodeError
Auto Trait Implementations§
impl Freeze for StoreDecodeError
impl RefUnwindSafe for StoreDecodeError
impl Send for StoreDecodeError
impl Sync for StoreDecodeError
impl Unpin for StoreDecodeError
impl UnsafeUnpin for StoreDecodeError
impl UnwindSafe for StoreDecodeError
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