pub trait WeightInfo {
// Required methods
fn set_validators(n: u32) -> Weight;
fn set_max_collators() -> Weight;
}Expand description
Weight functions needed for pallet_validator_collators.
Required Methods§
fn set_validators(n: u32) -> Weight
fn set_max_collators() -> 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 set_validators(n: u32) -> Weight
fn set_validators(n: u32) -> Weight
Storage: ValidatorCollators::ValidatorSet (r:1 w:1)
Proof: ValidatorCollators::ValidatorSet (max_values: Some(1), max_size: Some(32006),
added: 32501, mode: MaxEncodedLen)
Storage: ValidatorCollators::PendingRotation (r:0 w:1)
Proof: ValidatorCollators::PendingRotation (max_values: Some(1), max_size: Some(1),
added: 496, mode: MaxEncodedLen)
The range of component n is [1, 1000].
Source§fn set_max_collators() -> Weight
fn set_max_collators() -> Weight
Storage: ValidatorCollators::MaxCollators (r:0 w:1)
Proof: ValidatorCollators::MaxCollators (max_values: Some(1), max_size: Some(4),
added: 499, mode: MaxEncodedLen)