Trait frequency_runtime::GetStableWeight
source · pub trait GetStableWeight<RuntimeCall, Weight> {
// Required methods
fn get_stable_weight(call: &RuntimeCall) -> Option<Weight>;
fn get_inner_calls(outer_call: &RuntimeCall) -> Option<Vec<&RuntimeCall>>;
}
Expand description
Gets stable weights for a capacity Call
Required Methods§
sourcefn get_stable_weight(call: &RuntimeCall) -> Option<Weight>
fn get_stable_weight(call: &RuntimeCall) -> Option<Weight>
Get stable weights for Call
sourcefn get_inner_calls(outer_call: &RuntimeCall) -> Option<Vec<&RuntimeCall>>
fn get_inner_calls(outer_call: &RuntimeCall) -> Option<Vec<&RuntimeCall>>
Get inner calls from a Call if any exist,
e.g. in case of pay_with_capacity
and pay_with_capacity_batch_all
Object Safety§
This trait is not object safe.