pub struct LocalStorage { /* private fields */ }Expand description
Stores files under a root directory.
Implementations§
Trait Implementations§
Source§impl Clone for LocalStorage
impl Clone for LocalStorage
Source§impl Storage for LocalStorage
impl Storage for LocalStorage
async fn put(&self, path: &str, contents: Vec<u8>) -> Result<()>
async fn put_with( &self, path: &str, contents: Vec<u8>, _visibility: Visibility, ) -> Result<()>
async fn get(&self, path: &str) -> Result<Vec<u8>>
async fn exists(&self, path: &str) -> Result<bool>
async fn delete(&self, path: &str) -> Result<()>
async fn size(&self, path: &str) -> Result<u64>
Auto Trait Implementations§
impl Freeze for LocalStorage
impl RefUnwindSafe for LocalStorage
impl Send for LocalStorage
impl Sync for LocalStorage
impl Unpin for LocalStorage
impl UnsafeUnpin for LocalStorage
impl UnwindSafe for LocalStorage
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