Struct tauri_utils::assets::EmbeddedAssets
source · [−]pub struct EmbeddedAssets { /* private fields */ }
Expand description
Assets
implementation that only contains compile-time compressed and embedded assets.
Implementations
sourceimpl EmbeddedAssets
impl EmbeddedAssets
sourcepub const fn new(
map: Map<&'static str, &'static [u8]>,
global_hashes: &'static [CspHash<'static>],
html_hashes: Map<&'static str, &'static [CspHash<'static>]>
) -> Self
pub const fn new(
map: Map<&'static str, &'static [u8]>,
global_hashes: &'static [CspHash<'static>],
html_hashes: Map<&'static str, &'static [CspHash<'static>]>
) -> Self
Creates a new instance from the given asset map and script hash list.
Trait Implementations
sourceimpl Assets for EmbeddedAssets
impl Assets for EmbeddedAssets
Auto Trait Implementations
impl RefUnwindSafe for EmbeddedAssets
impl Send for EmbeddedAssets
impl Sync for EmbeddedAssets
impl Unpin for EmbeddedAssets
impl UnwindSafe for EmbeddedAssets
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more