pub struct FsStorage;Expand description
Production storage backed by std::fs.
Trait Implementations§
Source§impl Storage for FsStorage
impl Storage for FsStorage
fn read(&self, path: &Path) -> Result<String>
fn write(&self, path: &Path, content: &str) -> Result<()>
fn delete(&self, path: &Path) -> Result<()>
fn list(&self, dir: &Path) -> Result<Vec<PathBuf>>
fn create_dir_all(&self, path: &Path) -> Result<()>
fn exists(&self, path: &Path) -> bool
fn rename(&self, from: &Path, to: &Path) -> Result<()>
Auto Trait Implementations§
impl Freeze for FsStorage
impl RefUnwindSafe for FsStorage
impl Send for FsStorage
impl Sync for FsStorage
impl Unpin for FsStorage
impl UnsafeUnpin for FsStorage
impl UnwindSafe for FsStorage
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