referrerpolicy=no-referrer-when-downgrade

Trait Stash

pub trait Stash<Strategy>: AssetDefinition
where Strategy: StashStrategy,
{ // Required method fn stash( id: &Self::Id, strategy: Strategy, ) -> Result<<Strategy as StashStrategy>::Success, DispatchError>; }
Expand description

A trait representing the ability of a certain asset to be stashed.

This trait can be implemented multiple times using different stash strategies.

A stash strategy defines stash parameters.

Required Methods§

fn stash( id: &Self::Id, strategy: Strategy, ) -> Result<<Strategy as StashStrategy>::Success, DispatchError>

Stash the asset identified by the given id using the provided strategy.

The ID type is retrieved from the AssetDefinition.

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.

Implementors§

impl<T: Config<I>, I: 'static> Stash<CheckOrigin<<T as Config>::RuntimeOrigin>> for Item<Pallet<T, I>>

impl<T: Config<I>, I: 'static> Stash<CheckState<Owner<<T as Config>::AccountId>>> for Item<Pallet<T, I>>

impl<T: Config<I>, I: 'static> Stash<NoParams> for Item<Pallet<T, I>>