Trait tauri_utils::assets::Assets[][src]

pub trait Assets: Send + Sync + 'static {
    fn get<Key: Into<AssetKey>>(&self, key: Key) -> Option<Cow<'_, [u8]>>;
}

Represents a container of file assets that are retrievable during runtime.

Required methods

fn get<Key: Into<AssetKey>>(&self, key: Key) -> Option<Cow<'_, [u8]>>[src]

Get the content of the passed AssetKey.

Loading content...

Implementors

impl Assets for EmbeddedAssets[src]

Loading content...