#[repr(u8)]pub enum Error {
SupplyMismatch = 1,
NonEqualAmounts = 2,
InvalidProof = 3,
InsufficientReserves = 4,
InsufficientCoverage = 5,
IssueExceedsAllowance = 6,
}
Variants§
SupplyMismatch = 1
NonEqualAmounts = 2
InvalidProof = 3
InsufficientReserves = 4
InsufficientCoverage = 5
IssueExceedsAllowance = 6
Trait Implementations§
Source§impl StrictDecode for Error
impl StrictDecode for Error
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for Error
impl StrictDumb for Error
fn strict_dumb() -> Self
Source§impl StrictEncode for Error
impl StrictEncode for Error
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictEnum for Error
impl StrictEnum for Error
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictSum for Error
impl StrictSum for Error
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
Source§impl StrictType for Error
impl StrictType for Error
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB20
fn strict_name() -> Option<TypeName>
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.