pallet_shards::pallet

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn commit() -> Weight;
    fn ready() -> Weight;
    fn force_shard_offline() -> Weight;
    fn timeout_dkgs(b: u32) -> Weight;
}
Expand description

Trait to define the weights for various extrinsics in the pallet.

Required Methods§

Source

fn commit() -> Weight

Source

fn ready() -> Weight

Source

fn force_shard_offline() -> Weight

Source

fn timeout_dkgs(b: u32) -> 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 commit() -> Weight

Source§

fn ready() -> Weight

Source§

fn force_shard_offline() -> Weight

Source§

fn timeout_dkgs(_: u32) -> Weight

Implementors§