pub trait TransferAllAssets<AccountId> {
// Required method
fn force_transfer_all_assets(
from: &AccountId,
to: &AccountId,
) -> DispatchResult;
}Expand description
Transfer all assets that an account holds.
Required Methods§
Sourcefn force_transfer_all_assets(from: &AccountId, to: &AccountId) -> DispatchResult
fn force_transfer_all_assets(from: &AccountId, to: &AccountId) -> DispatchResult
Transfer all assets from one account to another.
This will possibly dust and reap the origin account and endow the receiver.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.