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

Trait HandleLifetime

Source
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§

Source

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

An account was created.

Source

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§

Source§

impl<T> HandleLifetime<T> for ()

Implementors§

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

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

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