GetMoment

Trait GetMoment 

Source
pub trait GetMoment<Moment> {
    // Required method
    fn get_moment() -> Option<Moment>;
}
Expand description

Source of the current block’s moment

Required Methods§

Source

fn get_moment() -> Option<Moment>

Returns the current block’s moment

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.

Implementors§

Source§

impl<Prefix, Value, Moment, QueryKind, OnEmpty> GetMoment<Moment> for FromStorage<StorageValue<Prefix, Value, QueryKind, OnEmpty>>
where Prefix: StorageInstance, Value: FullCodec, QueryKind: QueryKindTrait<Value, OnEmpty>, OnEmpty: Get<QueryKind::Query> + 'static, Option<Moment>: From<<QueryKind as QueryKindTrait<Value, OnEmpty>>::Query>,