Struct grebedb::vfs::MemoryVfs [−][src]
pub struct MemoryVfs { /* fields omitted */ }
A file system that is stored temporarily to memory.
Implementations
impl MemoryVfs
[src]
Trait Implementations
impl Clone for MemoryVfs
[src]
impl Debug for MemoryVfs
[src]
impl Default for MemoryVfs
[src]
impl Vfs for MemoryVfs
[src]
fn lock(&mut self, _path: &str) -> Result<(), Error>
[src]
fn unlock(&mut self, _path: &str) -> Result<(), Error>
[src]
fn read(&self, path: &str) -> Result<Vec<u8>, Error>
[src]
fn write(
&mut self,
path: &str,
data: &[u8],
_sync_option: VfsSyncOption
) -> Result<(), Error>
[src]
&mut self,
path: &str,
data: &[u8],
_sync_option: VfsSyncOption
) -> Result<(), Error>
fn sync_file(
&mut self,
_path: &str,
_sync_option: VfsSyncOption
) -> Result<(), Error>
[src]
&mut self,
_path: &str,
_sync_option: VfsSyncOption
) -> Result<(), Error>
fn remove_file(&mut self, path: &str) -> Result<(), Error>
[src]
fn read_dir(&self, path: &str) -> Result<Vec<String>, Error>
[src]
fn create_dir(&mut self, path: &str) -> Result<(), Error>
[src]
fn remove_dir(&mut self, path: &str) -> Result<(), Error>
[src]
fn rename_file(&mut self, old_path: &str, new_path: &str) -> Result<(), Error>
[src]
fn is_dir(&self, path: &str) -> Result<bool, Error>
[src]
fn exists(&self, path: &str) -> Result<bool, Error>
[src]
fn create_dir_all(&mut self, path: &str) -> Result<(), Error>
[src]
fn remove_empty_dir_all(&mut self, path: &str) -> Result<(), Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MemoryVfs
impl Send for MemoryVfs
impl Sync for MemoryVfs
impl Unpin for MemoryVfs
impl !UnwindSafe for MemoryVfs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,