pub trait AssetsCallback<AssetId, AccountId> {
// Provided methods
fn created(_id: &AssetId, _owner: &AccountId) -> Result<(), ()> { ... }
fn destroyed(_id: &AssetId) -> Result<(), ()> { ... }
}
Expand description
Trait with callbacks that are executed after successful asset creation or destruction.
Provided Methods§
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.