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