Trait rusty_leveldb::Env
[−]
[src]
pub trait Env { fn open_sequential_file(&self, _: &Path) -> Result<Box<Read>>; fn open_random_access_file(&self, _: &Path) -> Result<Box<RandomAccess>>; fn open_writable_file(&self, _: &Path) -> Result<Box<Write>>; fn open_appendable_file(&self, _: &Path) -> Result<Box<Write>>; fn exists(&self, _: &Path) -> Result<bool>; fn children(&self, _: &Path) -> Result<Vec<String>>; fn size_of(&self, _: &Path) -> Result<usize>; fn delete(&self, _: &Path) -> Result<()>; fn mkdir(&self, _: &Path) -> Result<()>; fn rmdir(&self, _: &Path) -> Result<()>; fn rename(&self, _: &Path, _: &Path) -> Result<()>; fn lock(&self, _: &Path) -> Result<FileLock>; fn unlock(&self, l: FileLock) -> Result<()>; fn new_logger(&self, _: &Path) -> Result<Logger>; fn micros(&self) -> u64; fn sleep_for(&self, micros: u32); }
Required Methods
fn open_sequential_file(&self, _: &Path) -> Result<Box<Read>>
fn open_random_access_file(&self, _: &Path) -> Result<Box<RandomAccess>>
fn open_writable_file(&self, _: &Path) -> Result<Box<Write>>
fn open_appendable_file(&self, _: &Path) -> Result<Box<Write>>
fn exists(&self, _: &Path) -> Result<bool>
fn children(&self, _: &Path) -> Result<Vec<String>>
fn size_of(&self, _: &Path) -> Result<usize>
fn delete(&self, _: &Path) -> Result<()>
fn mkdir(&self, _: &Path) -> Result<()>
fn rmdir(&self, _: &Path) -> Result<()>
fn rename(&self, _: &Path, _: &Path) -> Result<()>
fn lock(&self, _: &Path) -> Result<FileLock>
fn unlock(&self, l: FileLock) -> Result<()>
fn new_logger(&self, _: &Path) -> Result<Logger>
fn micros(&self) -> u64
fn sleep_for(&self, micros: u32)
Implementors
impl Env for PosixDiskEnv
impl Env for MemEnv