referrerpolicy=no-referrer-when-downgrade

OnDepositSet

Trait OnDepositSet 

Source
pub trait OnDepositSet {
    // Required methods
    fn on_deposit_set(
        request: DepositChangeRequest,
        result: Result<(), DepositError>,
    );
    fn weight_of_on_deposit_set(action: &DepositAction) -> Weight;
}
Expand description

Receives the outcome of a pending DepositChangeRequest.

Required Methods§

Source

fn on_deposit_set( request: DepositChangeRequest, result: Result<(), DepositError>, )

Called once request is applied, or refused with Err.

The worst-case weight of this call is Self::weight_of_on_deposit_set.

Source

fn weight_of_on_deposit_set(action: &DepositAction) -> Weight

Worst-case weight of Self::on_deposit_set for an action.

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.

Implementors§