pub trait AssetRegistry: StateWrite {
// Provided method
fn register_denom<'life0, 'life1, 'async_trait>(
&'life0 mut self,
denom: &'life1 Metadata,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Available on crate feature
component
only.Provided Methods§
Sourcefn register_denom<'life0, 'life1, 'async_trait>(
&'life0 mut self,
denom: &'life1 Metadata,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_denom<'life0, 'life1, 'async_trait>(
&'life0 mut self,
denom: &'life1 Metadata,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register a new asset present in the shielded pool. If the asset is already registered, this is a no-op.
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.