referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::token::fungible

Trait HandleImbalanceDrop

pub trait HandleImbalanceDrop<Balance> {
    // Required method
    fn handle(amount: Balance);
}
Expand description

Handler for when an imbalance gets dropped. This could handle either a credit (negative) or debt (positive) imbalance.

Required Methods§

fn handle(amount: Balance)

Some something with the imbalance’s value which is being dropped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<Balance> HandleImbalanceDrop<Balance> for ()

§

fn handle(_: Balance)

Implementors§

§

impl<AccountId, U> HandleImbalanceDrop<<U as Inspect<AccountId>>::Balance> for DecreaseIssuance<AccountId, U>
where U: Unbalanced<AccountId>,

§

impl<AccountId, U> HandleImbalanceDrop<<U as Inspect<AccountId>>::Balance> for IncreaseIssuance<AccountId, U>
where U: Unbalanced<AccountId>,