pub enum Algorithm {
Archive,
EarlyMerge,
OverlayRecent,
RefCounted,
}
Expand description
Journal database operating strategy.
Variants
Archive
Keep all keys forever.
EarlyMerge
Ancient and recent history maintained separately; recent history lasts for particular number of blocks.
Inserts go into backing database, journal retains knowledge of whether backing DB key is ancient or recent. Non-canon inserts get explicitly reverted and removed from backing DB.
OverlayRecent
Ancient and recent history maintained separately; recent history lasts for particular number of blocks.
Inserts go into memory overlay, which is tried for key fetches. Memory overlay gets flushed in backing only at end of recent history.
RefCounted
Ancient and recent history maintained separately; recent history lasts for particular number of blocks.
References are counted in disk-backed DB.
Implementations
sourceimpl Algorithm
impl Algorithm
sourcepub fn as_internal_name_str(&self) -> &'static str
pub fn as_internal_name_str(&self) -> &'static str
Returns static str describing journal database algorithm.
Trait Implementations
impl Copy for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more