referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::HandleLifetime

pub trait HandleLifetime<T> {
    // Provided methods
    fn created(_t: &T) -> Result<(), DispatchError> { ... }
    fn killed(_t: &T) -> Result<(), DispatchError> { ... }
}
Expand description

A simple, generic one-parameter event notifier/handler.

Provided Methods§

fn created(_t: &T) -> Result<(), DispatchError>

An account was created.

fn killed(_t: &T) -> Result<(), DispatchError>

An account was killed.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<T> HandleLifetime<T> for ()

Implementors§

§

impl<T> HandleLifetime<<T as Config>::AccountId> for Consumer<T>
where T: Config,

§

impl<T> HandleLifetime<<T as Config>::AccountId> for Provider<T>
where T: Config,

§

impl<T> HandleLifetime<<T as Config>::AccountId> for SelfSufficient<T>
where T: Config,