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
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.