Struct rusty_leveldb::PosixDiskEnv
source · [−]pub struct PosixDiskEnv { /* private fields */ }
Implementations
sourceimpl PosixDiskEnv
impl PosixDiskEnv
pub fn new_with(key: [u8; 16]) -> PosixDiskEnv
Trait Implementations
sourceimpl Clone for PosixDiskEnv
impl Clone for PosixDiskEnv
sourcefn clone(&self) -> PosixDiskEnv
fn clone(&self) -> PosixDiskEnv
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more