pub trait TakeRevenue {
// Required method
fn take_revenue(revenue: Asset);
}
Expand description
Function trait for handling some revenue. Similar to a negative imbalance (credit) handler, but
for a Asset
. Sensible implementations will deposit the asset in some known treasury or
block-author account.
Required Methods§
Sourcefn take_revenue(revenue: Asset)
fn take_revenue(revenue: Asset)
Do something with the given revenue
, which is a single non-wildcard Asset
.
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§
Source§impl TakeRevenue for ()
impl TakeRevenue for ()
Null implementation just burns the revenue.