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§
Trait Implementations§
impl Copy for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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