Enum miden_objects::AssetError
source · pub enum AssetError {
Show 14 variants
AmountTooBig(u64),
AssetAmountNotSufficient(u64, u64),
FungibleAssetInvalidFirstBit,
FungibleAssetInvalidTag(u32),
FungibleAssetInvalidWord(Word),
InconsistentFaucetIds(AccountId, AccountId),
InvalidAccountId(String),
InvalidFieldElement(String),
NonFungibleAssetInvalidFirstBit,
NonFungibleAssetInvalidTag(u32),
NotAFungibleFaucetId(AccountId),
NotANonFungibleFaucetId(AccountId),
NotAnAsset(Word),
TokenSymbolError(String),
}Variants§
AmountTooBig(u64)
AssetAmountNotSufficient(u64, u64)
FungibleAssetInvalidFirstBit
FungibleAssetInvalidTag(u32)
FungibleAssetInvalidWord(Word)
InconsistentFaucetIds(AccountId, AccountId)
InvalidAccountId(String)
InvalidFieldElement(String)
NonFungibleAssetInvalidFirstBit
NonFungibleAssetInvalidTag(u32)
NotAFungibleFaucetId(AccountId)
NotANonFungibleFaucetId(AccountId)
NotAnAsset(Word)
TokenSymbolError(String)
Implementations§
source§impl AssetError
impl AssetError
pub fn amount_too_big(value: u64) -> Self
pub fn asset_amount_not_sufficient(available: u64, requested: u64) -> Self
pub fn fungible_asset_invalid_first_bit() -> Self
pub fn fungible_asset_invalid_tag(tag: u32) -> Self
pub fn fungible_asset_invalid_word(word: Word) -> Self
pub fn inconsistent_faucet_ids(id1: AccountId, id2: AccountId) -> Self
pub fn invalid_account_id(err: String) -> Self
pub fn invalid_field_element(msg: String) -> Self
pub fn non_fungible_asset_invalid_first_bit() -> Self
pub fn non_fungible_asset_invalid_tag(tag: u32) -> Self
pub fn not_a_fungible_faucet_id(id: AccountId) -> Self
pub fn not_a_non_fungible_faucet_id(id: AccountId) -> Self
pub fn not_an_asset(value: Word) -> Self
Trait Implementations§
source§impl Clone for AssetError
impl Clone for AssetError
source§fn clone(&self) -> AssetError
fn clone(&self) -> AssetError
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 AssetError
impl Debug for AssetError
source§impl Display for AssetError
impl Display for AssetError
source§impl Error for AssetError
impl Error for AssetError
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 for AssetError
impl PartialEq for AssetError
source§fn eq(&self, other: &AssetError) -> bool
fn eq(&self, other: &AssetError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AssetError
impl StructuralPartialEq for AssetError
Auto Trait Implementations§
impl RefUnwindSafe for AssetError
impl Send for AssetError
impl Sync for AssetError
impl Unpin for AssetError
impl UnwindSafe for AssetError
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