pub enum StoreEncodeError {
TypeMismatch {
expected: String,
actual: String,
},
UnknownTypeId,
UnknownVariant {
type_name: String,
variant: String,
},
UnknownField {
type_name: String,
field: String,
},
Overflow {
value: String,
bits: u8,
},
Bitpack(EncodeError),
TypeNotFound {
type_name: String,
},
RecursionLimit,
}Expand description
Errors from schema-driven encoding (Value -> bitpack bytes).
Variants§
TypeMismatch
UnknownTypeId
UnknownVariant
UnknownField
Overflow
Bitpack(EncodeError)
TypeNotFound
RecursionLimit
Trait Implementations§
Source§impl Clone for StoreEncodeError
impl Clone for StoreEncodeError
Source§fn clone(&self) -> StoreEncodeError
fn clone(&self) -> StoreEncodeError
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 StoreEncodeError
impl Debug for StoreEncodeError
Source§impl Display for StoreEncodeError
impl Display for StoreEncodeError
Source§impl Error for StoreEncodeError
impl Error for StoreEncodeError
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<EncodeError> for StoreEncodeError
impl From<EncodeError> for StoreEncodeError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreEncodeError
impl PartialEq for StoreEncodeError
impl StructuralPartialEq for StoreEncodeError
Auto Trait Implementations§
impl Freeze for StoreEncodeError
impl RefUnwindSafe for StoreEncodeError
impl Send for StoreEncodeError
impl Sync for StoreEncodeError
impl Unpin for StoreEncodeError
impl UnsafeUnpin for StoreEncodeError
impl UnwindSafe for StoreEncodeError
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