pallet_allocations::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn allocate(b: u32) -> Weight;
    fn calc_quota() -> Weight;
    fn renew_quota() -> Weight;
    fn checked_update_session_quota() -> Weight;
    fn set_curve_starting_block() -> Weight;
}
Expand description

Weight functions needed for pallet_allocations.

Required Methods§

Source

fn allocate(b: u32) -> Weight

Source

fn calc_quota() -> Weight

Source

fn renew_quota() -> Weight

Source

fn checked_update_session_quota() -> Weight

Source

fn set_curve_starting_block() -> 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 allocate(b: u32) -> Weight

The range of component b is [1, 500].

Source§

fn calc_quota() -> Weight

Source§

fn renew_quota() -> Weight

Source§

fn checked_update_session_quota() -> Weight

Source§

fn set_curve_starting_block() -> Weight

Implementors§

Source§

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