referrerpolicy=no-referrer-when-downgrade
pallet_timestamp::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn set() -> Weight;
    fn on_finalize() -> Weight;
}
Expand description

Weight functions needed for pallet_timestamp.

Required Methods§

Source

fn set() -> Weight

Source

fn on_finalize() -> Weight

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.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn set() -> Weight

Storage: Timestamp::Now (r:1 w:1) Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Babe::CurrentSlot (r:1 w:0) Proof: Babe::CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)

Source§

fn on_finalize() -> Weight

Implementors§

Source§

impl<T: Config> WeightInfo for SubstrateWeight<T>

impl<T: Config> WeightInfo for WeightInfo<T>