pub trait WeightInfo {
Show 14 methods
// Required methods
fn set_invulnerables(b: u32) -> Weight;
fn add_invulnerable(i: u32) -> Weight;
fn remove_invulnerable(i: u32) -> Weight;
fn set_desired_candidates() -> Weight;
fn set_candidacy_bond() -> Weight;
fn register_as_candidate() -> Weight;
fn apply_for_candidacy() -> Weight;
fn close_application() -> Weight;
fn approve_application(c: u32) -> Weight;
fn kick_candidate(c: u32) -> Weight;
fn leave_intent(c: u32) -> Weight;
fn withdraw_bond() -> Weight;
fn note_author() -> Weight;
fn new_session(r: u32, c: u32) -> Weight;
}Expand description
Weight info trait.
Required Methods§
fn set_invulnerables(b: u32) -> Weight
fn add_invulnerable(i: u32) -> Weight
fn remove_invulnerable(i: u32) -> Weight
fn set_desired_candidates() -> Weight
fn set_candidacy_bond() -> Weight
fn register_as_candidate() -> Weight
fn apply_for_candidacy() -> Weight
fn close_application() -> Weight
fn approve_application(c: u32) -> Weight
fn kick_candidate(c: u32) -> Weight
fn leave_intent(c: u32) -> Weight
fn withdraw_bond() -> Weight
fn new_session(r: u32, c: 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 ()
Weights for tests
impl WeightInfo for ()
Weights for tests
Source§fn set_invulnerables(b: u32) -> Weight
fn set_invulnerables(b: u32) -> Weight
The range of component b is [1, 48].
Source§fn add_invulnerable(i: u32) -> Weight
fn add_invulnerable(i: u32) -> Weight
The range of component i is [1, 47].
Source§fn remove_invulnerable(i: u32) -> Weight
fn remove_invulnerable(i: u32) -> Weight
The range of component i is [2, 48].
Source§fn approve_application(c: u32) -> Weight
fn approve_application(c: u32) -> Weight
The range of component c is [1, 148].
Source§fn kick_candidate(c: u32) -> Weight
fn kick_candidate(c: u32) -> Weight
The range of component c is [6, 148].
Source§fn leave_intent(c: u32) -> Weight
fn leave_intent(c: u32) -> Weight
The range of component c is [6, 148].
Source§fn new_session(_r: u32, c: u32) -> Weight
fn new_session(_r: u32, c: u32) -> Weight
The range of component r is [1, 148].
The range of component c is [1, 148].