Trait gear_common::storage::GetCallback

source ·
pub trait GetCallback<T> {
    // Required method
    fn call() -> T;
}
Expand description

Represents callback action for cases without input for getting some data.

Required Methods§

source

fn call() -> T

Returns value by callback’s logic.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Default> GetCallback<T> for ()

source§

fn call() -> T

Implementors§