[−][src]Struct rocks::persistent_cache::PersistentCache
Persistent cache interface for caching IO pages on a persistent medium. The cache interface is specifically designed for persistent read cache.
Implementations
impl PersistentCache
[src]
pub fn new<P: AsRef<Path>>(
env: &Env,
path: P,
size: u64,
log: Option<&Logger>,
optimized_for_nvm: bool
) -> Result<PersistentCache>
[src]
env: &Env,
path: P,
size: u64,
log: Option<&Logger>,
optimized_for_nvm: bool
) -> Result<PersistentCache>
Factor method to create a new persistent cache
pub fn get_printable_options(&self) -> String
[src]
Trait Implementations
impl Clone for PersistentCache
[src]
fn clone(&self) -> Self
[src]
Duplicated PersistentCache inner shared_ptr
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PersistentCache
[src]
impl Drop for PersistentCache
[src]
Auto Trait Implementations
impl RefUnwindSafe for PersistentCache
impl !Send for PersistentCache
impl !Sync for PersistentCache
impl Unpin for PersistentCache
impl UnwindSafe for PersistentCache
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,