referrerpolicy=no-referrer-when-downgrade

WeightInfo

Trait WeightInfo 

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

Weight functions needed for pallet_pgas_allowance.

Required Methods§

Source

fn charge_pgas() -> Weight

Full PGAS path: validate, withdraw into a credit and resolve refund.

Source

fn charge_pgas_skip() -> Weight

PGAS path is skipped (unsigned, filter miss, or insufficient PGAS balance).

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 charge_pgas() -> Weight

Source§

fn charge_pgas_skip() -> Weight

Implementors§

Source§

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