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§

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: &())

source§

impl ExtensionPostDispatchWeightHandler<()> for PostDispatchInfo

source§

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

source§

impl ExtensionPostDispatchWeightHandler<DispatchInfo> for PostDispatchInfo

Implementors§