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>
fn created(_t: &T) -> Result<(), DispatchError>
An account was created.
fn killed(_t: &T) -> Result<(), DispatchError>
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.