referrerpolicy=no-referrer-when-downgrade

Trait polkadot_service::runtime_traits::RefundWeight

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

A type that can handle weight refunds.

Required Methods§

source

fn refund(&mut self, weight: Weight)

Refund some unspent weight.

Implementations on Foreign Types§

source§

impl RefundWeight for ()

source§

fn refund(&mut self, _weight: Weight)

source§

impl RefundWeight for PostDispatchInfo

source§

fn refund(&mut self, weight: Weight)

Implementors§