Enum frame_support::traits::tokens::DepositConsequence [−][src]
pub enum DepositConsequence { BelowMinimum, CannotCreate, UnknownAsset, Overflow, Success, }
Expand description
One of a number of consequences of withdrawing a fungible from an account.
Variants
Deposit couldn’t happen due to the amount being too low. This is usually because the account doesn’t yet exist and the deposit wouldn’t bring it to at least the minimum needed for existance.
Deposit cannot happen since the account cannot be created (usually because it’s a consumer and there exists no provider reference).
The asset is unknown. Usually because an AssetId
has been presented which doesn’t exist
on the system.
An overflow would occur. This is practically unexpected, but could happen in test systems with extremely small balance types or balances that approach the max value of the balance type.
Account continued in existence.
Implementations
Convert the type into a Result
with TokenError
as the error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DepositConsequence
impl Send for DepositConsequence
impl Sync for DepositConsequence
impl Unpin for DepositConsequence
impl UnwindSafe for DepositConsequence
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V