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

Trait Time

pub trait Time {
    type Moment: AtLeast32Bit + Parameter + Default + Copy + MaxEncodedLen;

    // Required method
    fn now() -> Self::Moment;
}

Required Associated Types§

type Moment: AtLeast32Bit + Parameter + Default + Copy + MaxEncodedLen

Required Methods§

fn now() -> Self::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§

impl Time for TestDefaultConfig

impl Time for TestDefaultConfig

impl<T: Config> Time for Pallet<T>