pub trait WeightInfo {
// Required methods
fn heartbeat(k: u32) -> Weight;
fn authorize_heartbeat(k: u32) -> Weight;
}Expand description
Weight functions needed for pallet_im_online.
Required Methods§
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 heartbeat(_k: u32) -> Weight
fn heartbeat(_k: u32) -> Weight
Storage: Session::CurrentIndex (r:1 w:0)
Proof: Session::CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
Storage: ImOnline::ReceivedHeartbeats (r:1 w:1)
Proof: ImOnline::ReceivedHeartbeats (max_values: None, max_size: Some(25), added: 2500, mode: MaxEncodedLen)
Storage: ImOnline::Keys (r:1 w:0)
Proof: ImOnline::Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
The range of component k is [1, 10000].
Storage: Session::Validators (r:1 w:0)
Proof: Session::Validators (max_values: Some(1), max_size: None, mode: Measured)
Storage: Session::CurrentIndex (r:1 w:0)
Proof: Session::CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
Storage: ImOnline::Keys (r:1 w:0)
Proof: ImOnline::Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
The range of component k is [1, 10000].