referrerpolicy=no-referrer-when-downgrade
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§

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

Accrue some weight pertaining to the extension.

Implementations on Foreign Types§

§

impl ExtensionPostDispatchWeightHandler<()> for ()

§

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

§

impl ExtensionPostDispatchWeightHandler<()> for PostDispatchInfo

§

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

§

impl ExtensionPostDispatchWeightHandler<DispatchInfo> for PostDispatchInfo

§

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

Implementors§