referrerpolicy=no-referrer-when-downgrade

Trait pallet_assets::AssetsCallback

source ·
pub trait AssetsCallback<AssetId, AccountId> {
    // Provided methods
    fn created(_id: &AssetId, _owner: &AccountId) -> Result<(), ()> { ... }
    fn destroyed(_id: &AssetId) -> Result<(), ()> { ... }
}
Expand description

Trait with callbacks that are executed after successful asset creation or destruction.

Provided Methods§

source

fn created(_id: &AssetId, _owner: &AccountId) -> Result<(), ()>

Indicates that asset with id was successfully created by the owner

source

fn destroyed(_id: &AssetId) -> Result<(), ()>

Indicates that asset with id has just been destroyed

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AssetId, AccountId> AssetsCallback<AssetId, AccountId> for ()

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0,)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>, TupleElement5: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>, TupleElement5: AssetsCallback<AssetId, AccountId>, TupleElement6: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>, TupleElement5: AssetsCallback<AssetId, AccountId>, TupleElement6: AssetsCallback<AssetId, AccountId>, TupleElement7: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>, TupleElement5: AssetsCallback<AssetId, AccountId>, TupleElement6: AssetsCallback<AssetId, AccountId>, TupleElement7: AssetsCallback<AssetId, AccountId>, TupleElement8: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)

source§

impl<AssetId, AccountId, TupleElement0: AssetsCallback<AssetId, AccountId>, TupleElement1: AssetsCallback<AssetId, AccountId>, TupleElement2: AssetsCallback<AssetId, AccountId>, TupleElement3: AssetsCallback<AssetId, AccountId>, TupleElement4: AssetsCallback<AssetId, AccountId>, TupleElement5: AssetsCallback<AssetId, AccountId>, TupleElement6: AssetsCallback<AssetId, AccountId>, TupleElement7: AssetsCallback<AssetId, AccountId>, TupleElement8: AssetsCallback<AssetId, AccountId>, TupleElement9: AssetsCallback<AssetId, AccountId>> AssetsCallback<AssetId, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)

Implementors§

source§

impl<T: Config<I>, I> AssetsCallback<<T as Config<I>>::AssetId, <T as Config>::AccountId> for AutoIncAssetId<T, I>
where T::AssetId: Incrementable,