pub trait KnownAsset: AssetTrait {
// Required methods
fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset;
fn wrap_id(id: AssetId<Self>) -> AnyAssetId;
}Expand description
An asset kind the protocol knows, so a typed asset can be sent.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".