Skip to main content

KnownAsset

Trait KnownAsset 

Source
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§

Source

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl KnownAsset for Animation

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for Curve

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for FixtureDefinition

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for MidiController

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for OutputDevice

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for Palette

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for Project

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Source§

impl KnownAsset for Scene

Source§

fn wrap(asset: Arc<Asset<Self>>) -> AnyAsset

Source§

fn wrap_id(id: AssetId<Self>) -> AnyAssetId

Implementors§