Struct rusty_leveldb_arc::PosixDiskEnv
source · pub struct PosixDiskEnv { /* private fields */ }
Implementations§
source§impl PosixDiskEnv
impl PosixDiskEnv
pub fn new() -> PosixDiskEnv
Trait Implementations§
source§impl Clone for PosixDiskEnv
impl Clone for PosixDiskEnv
source§fn clone(&self) -> PosixDiskEnv
fn clone(&self) -> PosixDiskEnv
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Env for PosixDiskEnv
impl Env for PosixDiskEnv
fn open_sequential_file(&self, p: &Path) -> Result<Box<dyn Read>>
fn open_random_access_file(&self, p: &Path) -> Result<Box<dyn RandomAccess>>
fn open_writable_file(&self, p: &Path) -> Result<Box<dyn Write>>
fn open_appendable_file(&self, p: &Path) -> Result<Box<dyn Write>>
fn exists(&self, p: &Path) -> Result<bool>
fn children(&self, p: &Path) -> Result<Vec<PathBuf>>
fn size_of(&self, p: &Path) -> Result<usize>
fn delete(&self, p: &Path) -> Result<()>
fn mkdir(&self, p: &Path) -> Result<()>
fn rmdir(&self, p: &Path) -> Result<()>
fn rename(&self, old: &Path, new: &Path) -> Result<()>
fn lock(&self, p: &Path) -> Result<FileLock>
fn unlock(&self, l: FileLock) -> Result<()>
fn new_logger(&self, p: &Path) -> Result<Logger>
fn micros(&self) -> u64
fn sleep_for(&self, micros: u32)
Auto Trait Implementations§
impl RefUnwindSafe for PosixDiskEnv
impl Send for PosixDiskEnv
impl Sync for PosixDiskEnv
impl Unpin for PosixDiskEnv
impl UnwindSafe for PosixDiskEnv
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