referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait 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.

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<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,