Enum scale_bits::scale::format::FromMetadataError
source · [−]pub enum FromMetadataError {
OrderFormatNotFound(u32),
StoreFormatNotFound(u32),
NoBitOrderIdent,
StoreFormatNotSupported(String),
OrderFormatNotSupported(String),
}
Expand description
An error that can occur when we try to encode or decode to a SCALE bit sequence type.
Variants
OrderFormatNotFound(u32)
The registry did not contain the bit order type listed.
StoreFormatNotFound(u32)
The registry did not contain the bit store type listed.
NoBitOrderIdent
The bit order type did not have a valid identifier/name.
StoreFormatNotSupported(String)
The bit store type that we found was not what we expected (a primitive u8/u16/u32/u64).
OrderFormatNotSupported(String)
The bit order type name that we found was not what we expected (“Lsb0” or “Msb0”).
Trait Implementations
sourceimpl Clone for FromMetadataError
impl Clone for FromMetadataError
sourcefn clone(&self) -> FromMetadataError
fn clone(&self) -> FromMetadataError
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 moresourceimpl Debug for FromMetadataError
impl Debug for FromMetadataError
sourceimpl Display for FromMetadataError
impl Display for FromMetadataError
sourceimpl Error for FromMetadataError
impl Error for FromMetadataError
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<FromMetadataError> for FromMetadataError
impl PartialEq<FromMetadataError> for FromMetadataError
sourcefn eq(&self, other: &FromMetadataError) -> bool
fn eq(&self, other: &FromMetadataError) -> bool
impl Eq for FromMetadataError
impl StructuralEq for FromMetadataError
impl StructuralPartialEq for FromMetadataError
Auto Trait Implementations
impl RefUnwindSafe for FromMetadataError
impl Send for FromMetadataError
impl Sync for FromMetadataError
impl Unpin for FromMetadataError
impl UnwindSafe for FromMetadataError
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