pub trait WeightInfo {
// Required methods
fn append() -> Weight;
fn on_finalize() -> Weight;
}
Expand description
Weight functions needed for pallet_block_production_log.
Required Methods§
fn append() -> Weight
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 ()
impl WeightInfo for ()
Source§fn append() -> Weight
fn append() -> Weight
Storage: BlockProductionLog::LatestBlock
(r:1 w:1)
Proof: BlockProductionLog::LatestBlock
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: BlockProductionLog::CurrentProducer
(r:0 w:1)
Proof: BlockProductionLog::CurrentProducer
(max_values
: Some(1), max_size
: Some(66), added: 561, mode: MaxEncodedLen
)
Source§fn on_finalize() -> Weight
fn on_finalize() -> Weight
Storage: BlockProductionLog::CurrentProducer
(r:1 w:1)
Proof: BlockProductionLog::CurrentProducer
(max_values
: Some(1), max_size
: Some(66), added: 561, mode: MaxEncodedLen
)
Storage: Aura::CurrentSlot
(r:1 w:0)
Proof: Aura::CurrentSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: BlockProductionLog::Log
(r:1 w:1)
Proof: BlockProductionLog::Log
(max_values
: Some(1), max_size
: None, mode: Measured
)