Enum scale_bits::dynamic::BitsDetailsError
source · [−]pub enum BitsDetailsError {
OrderTypeNotFound(u32),
StoreTypeNotFound(u32),
NoBitOrderIdent,
StoreTypeNotSupported(String),
OrderTypeNotSupported(String),
}
Expand description
An error that can occur when we try to encode or decode to a SCALE bit sequence type.
Variants
OrderTypeNotFound(u32)
The registry did not contain the bit order type listed.
StoreTypeNotFound(u32)
The registry did not contain the bit store type listed.
NoBitOrderIdent
The bit order type did not have a valid identifier/name.
StoreTypeNotSupported(String)
The bit store type that we found was not what we expected (a primitive u8/u16/u32/u64).
OrderTypeNotSupported(String)
The bit order type name that we found was not what we expected (“Lsb0” or “Msb0”).
Trait Implementations
sourceimpl Clone for BitsDetailsError
impl Clone for BitsDetailsError
sourcefn clone(&self) -> BitsDetailsError
fn clone(&self) -> BitsDetailsError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BitsDetailsError
impl Debug for BitsDetailsError
sourceimpl Display for BitsDetailsError
impl Display for BitsDetailsError
sourceimpl Error for BitsDetailsError
impl Error for BitsDetailsError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<BitsDetailsError> for BitsDetailsError
impl PartialEq<BitsDetailsError> for BitsDetailsError
sourcefn eq(&self, other: &BitsDetailsError) -> bool
fn eq(&self, other: &BitsDetailsError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for BitsDetailsError
Auto Trait Implementations
impl RefUnwindSafe for BitsDetailsError
impl Send for BitsDetailsError
impl Sync for BitsDetailsError
impl Unpin for BitsDetailsError
impl UnwindSafe for BitsDetailsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more