referrerpolicy=no-referrer-when-downgrade

Forwarder

Trait Forwarder 

Source
pub trait Forwarder<AccountId, Balance> {
    // Required method
    fn forward(source: AccountId, amount: Balance) -> Result<(), ()>;
}
Expand description

Trait for forwarding accumulated funds to a configured destination.

Implementations carry all message-construction and dispatch logic, keeping this pallet free of transport-specific dependencies.

Required Methods§

Source

fn forward(source: AccountId, amount: Balance) -> Result<(), ()>

Forward amount from source to the configured destination.

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§