pub trait WeightInfo {
// Required methods
fn configure() -> Weight;
fn place_order() -> Weight;
fn on_finalize_with_orders(n: u32) -> Weight;
}Expand description
Weight functions needed for pallet_on_demand_para.
Required Methods§
fn configure() -> Weight
fn place_order() -> Weight
fn on_finalize_with_orders(n: 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 ()
impl WeightInfo for ()
Source§fn configure() -> Weight
fn configure() -> Weight
Storage: OnDemand::PriceConfig (r:0 w:1)
Proof: OnDemand::PriceConfig (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn place_order() -> Weight
fn place_order() -> Weight
Storage: OnDemand::PendingBatch (r:1 w:1)
Proof: OnDemand::PendingBatch (max_values: Some(1), max_size: Some(8002), added: 8497, mode: MaxEncodedLen)
Storage: OnDemand::QueueState (r:1 w:1)
Proof: OnDemand::QueueState (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: OnDemand::PriceConfig (r:1 w:0)
Proof: OnDemand::PriceConfig (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Source§fn on_finalize_with_orders(n: u32) -> Weight
fn on_finalize_with_orders(n: u32) -> Weight
Storage: OnDemand::PendingBatch (r:1 w:1)
Proof: OnDemand::PendingBatch (max_values: Some(1), max_size: Some(8002), added: 8497, mode: Measured)
The range of component n is [1, 100].