referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::RefundWeight

pub trait RefundWeight {
    // Required method
    fn refund(&mut self, weight: Weight);
}
Expand description

A type that can handle weight refunds.

Required Methods§

fn refund(&mut self, weight: Weight)

Refund some unspent weight.

Implementations on Foreign Types§

§

impl RefundWeight for ()

§

fn refund(&mut self, _weight: Weight)

§

impl RefundWeight for PostDispatchInfo

§

fn refund(&mut self, weight: Weight)

Implementors§