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§
source§impl Clone for FromMetadataError
impl Clone for FromMetadataError
source§fn clone(&self) -> FromMetadataError
fn clone(&self) -> FromMetadataError
Returns a copy 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 FromMetadataError
impl Debug for FromMetadataError
source§impl Display for FromMetadataError
impl Display for FromMetadataError
source§impl Error for FromMetadataError
impl Error for FromMetadataError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<FromMetadataError> for FromMetadataError
impl PartialEq<FromMetadataError> for FromMetadataError
source§fn eq(&self, other: &FromMetadataError) -> bool
fn eq(&self, other: &FromMetadataError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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