Skip to main content

Trait tauri::Assets

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

Expand description

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

Required methods#

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

Get the content of the passed [AssetKey].

Implementations on Foreign Types#

impl Assets for EmbeddedAssets#

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

Implementors#