pub struct AssetStore { /* private fields */ }Implementations§
Source§impl AssetStore
impl AssetStore
pub fn new( limits: AssetsLimits, env: &Arc<Environment>, log_sizes: bool, ) -> Result<Self>
pub fn put( &self, path: &str, asset: &[u8], compression: Option<(&CompressionAlgorithm, usize)>, ) -> Result<()>
pub fn get( &self, path: &str, compression: Option<&CompressionAlgorithm>, ) -> Result<Bytes>
pub fn delete( &self, path: &str, compression: Option<&CompressionAlgorithm>, ) -> Result<()>
pub fn delete_all(&self, skip_list: &Vec<String>) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for AssetStore
impl !UnwindSafe for AssetStore
impl Freeze for AssetStore
impl Send for AssetStore
impl Sync for AssetStore
impl Unpin for AssetStore
impl UnsafeUnpin for AssetStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more