Trait tauri_utils::assets::Assets
source · pub trait Assets:
Send
+ Sync
+ 'static {
// Required methods
fn get(&self, key: &AssetKey) -> Option<Cow<'_, [u8]>>;
fn iter(&self) -> Box<dyn Iterator<Item = (&&str, &&[u8])> + '_>;
fn csp_hashes(
&self,
html_path: &AssetKey,
) -> Box<dyn Iterator<Item = CspHash<'_>> + '_>;
}
Expand description
Represents a container of file assets that are retrievable during runtime.