Trait ExtensionPostDispatchWeightHandler

Source
pub trait ExtensionPostDispatchWeightHandler<DispatchInfo>: RefundWeight {
    // Required method
    fn set_extension_weight(&mut self, info: &DispatchInfo);
}
Expand description

A type that can handle weight refunds and incorporate extension weights into the call weight after dispatch.

Required Methods§

Source

fn set_extension_weight(&mut self, info: &DispatchInfo)

Accrue some weight pertaining to the extension.

Implementations on Foreign Types§

Source§

impl ExtensionPostDispatchWeightHandler<()> for ()

Source§

fn set_extension_weight(&mut self, _info: &())

Implementors§