referrerpolicy=no-referrer-when-downgrade
emulated_integration_tests_common::macros

Trait DropAssets

pub trait DropAssets {
    // Required method
    fn drop_assets(
        origin: &Location,
        assets: AssetsInHolding,
        context: &XcmContext,
    ) -> Weight;
}
Expand description

Define a handler for when some non-empty AssetsInHolding value should be dropped.

Required Methods§

fn drop_assets( origin: &Location, assets: AssetsInHolding, context: &XcmContext, ) -> Weight

Handler for receiving dropped assets. Returns the weight consumed by this operation.

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.

Implementations on Foreign Types§

§

impl DropAssets for ()

§

fn drop_assets( _origin: &Location, _assets: AssetsInHolding, _context: &XcmContext, ) -> Weight

§

impl DropAssets for TestAssetTrap

§

fn drop_assets( origin: &Location, assets: AssetsInHolding, _context: &XcmContext, ) -> Weight

§

impl<T> DropAssets for Pallet<T>
where T: Config,

§

fn drop_assets( origin: &Location, assets: AssetsInHolding, _context: &XcmContext, ) -> Weight

Implementors§