pub trait WeightInfo {
// Required methods
fn set_key() -> Weight;
fn sudo() -> Weight;
fn sudo_as() -> Weight;
fn remove_key() -> Weight;
fn check_only_sudo_account() -> Weight;
}
Expand description
Weight functions needed for pallet_sudo
.
Required Methods§
fn set_key() -> Weight
fn sudo() -> Weight
fn sudo_as() -> Weight
fn remove_key() -> Weight
fn check_only_sudo_account() -> 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_key() -> Weight
fn set_key() -> Weight
Storage: Sudo::Key
(r:1 w:1)
Proof: Sudo::Key
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Source§fn sudo() -> Weight
fn sudo() -> Weight
Storage: Sudo::Key
(r:1 w:0)
Proof: Sudo::Key
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Source§fn sudo_as() -> Weight
fn sudo_as() -> Weight
Storage: Sudo::Key
(r:1 w:0)
Proof: Sudo::Key
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Source§fn remove_key() -> Weight
fn remove_key() -> Weight
Storage: Sudo::Key
(r:1 w:1)
Proof: Sudo::Key
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Source§fn check_only_sudo_account() -> Weight
fn check_only_sudo_account() -> Weight
Storage: Sudo::Key
(r:1 w:0)
Proof: Sudo::Key
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)