Enum journaldb::Algorithm[][src]

pub enum Algorithm {
    Archive,
    EarlyMerge,
    OverlayRecent,
    RefCounted,
}

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

impl Algorithm[src]

pub fn as_str(&self) -> &'static str[src]

Returns static str describing journal database algorithm.

pub fn as_internal_name_str(&self) -> &'static str[src]

Returns static str describing journal database algorithm.

pub fn is_stable(&self) -> bool[src]

Returns true if pruning strategy is stable

pub fn all_types() -> Vec<Algorithm>[src]

Returns all algorithm types.

Trait Implementations

impl Clone for Algorithm[src]

impl Copy for Algorithm[src]

impl Debug for Algorithm[src]

impl Display for Algorithm[src]

impl FromStr for Algorithm[src]

type Err = String

The associated error which can be returned from parsing.

impl PartialEq<Algorithm> for Algorithm[src]

impl StructuralPartialEq for Algorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,