pub trait WeightInfo {
// Required methods
fn validate() -> Weight;
fn pre_dispatch() -> Weight;
}
Expand description
Weight functions needed for pallet_passkey
.
Required Methods§
fn validate() -> Weight
fn pre_dispatch() -> 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 validate() -> Weight
fn validate() -> Weight
Storage: System::BlockHash
(r:1 w:0)
Proof: System::BlockHash
(max_values
: None, max_size
: Some(44), added: 2519, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:0)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn pre_dispatch() -> Weight
fn pre_dispatch() -> Weight
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)