Struct archival::MemoryFileSystem
source · pub struct MemoryFileSystem { /* private fields */ }Trait Implementations§
source§impl Default for MemoryFileSystem
impl Default for MemoryFileSystem
source§fn default() -> MemoryFileSystem
fn default() -> MemoryFileSystem
Returns the “default value” for a type. Read more
source§impl FileSystemAPI for MemoryFileSystem
impl FileSystemAPI for MemoryFileSystem
fn exists(&self, path: &Path) -> Result<bool, Box<dyn Error>>
fn is_dir(&self, path: &Path) -> Result<bool, Box<dyn Error>>
fn remove_dir_all(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
fn create_dir_all(&mut self, _path: &Path) -> Result<(), Box<dyn Error>>
fn read(&self, path: &Path) -> Result<Option<Vec<u8>>, Box<dyn Error>>
fn read_to_string(&self, path: &Path) -> Result<Option<String>, Box<dyn Error>>
fn delete(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
fn write( &mut self, path: &Path, contents: Vec<u8> ) -> Result<(), Box<dyn Error>>
fn write_str( &mut self, path: &Path, contents: String ) -> Result<(), Box<dyn Error>>
fn copy_recursive( &mut self, from: &Path, to: &Path ) -> Result<(), Box<dyn Error>>
fn walk_dir( &self, path: &Path, include_dirs: bool ) -> Result<Box<dyn Iterator<Item = PathBuf>>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for MemoryFileSystem
impl RefUnwindSafe for MemoryFileSystem
impl Send for MemoryFileSystem
impl Sync for MemoryFileSystem
impl Unpin for MemoryFileSystem
impl UnwindSafe for MemoryFileSystem
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