Trait gear_common::storage::Callback

source ·
pub trait Callback<T, R = ()> {
    // Required method
    fn call(arg: &T) -> R;
}
Expand description

Represents callback action for cases (&T) -> R, where R is () by default.

Required Methods§

source

fn call(arg: &T) -> R

Triggers the callback’s logic.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Callback<T> for ()

Implementors§