Enum journaldb::Algorithm[][src]

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

Journal database operating strategy.

Variants

Keep all keys forever.

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.

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.

Ancient and recent history maintained separately; recent history lasts for particular number of blocks.

References are counted in disk-backed DB.

Methods

impl Algorithm
[src]

Returns static str describing journal database algorithm.

Returns static str describing journal database algorithm.

Returns true if pruning strategy is stable

Returns all algorithm types.

Trait Implementations

impl Debug for Algorithm
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Algorithm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Algorithm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Algorithm
[src]

impl FromStr for Algorithm
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Algorithm
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Algorithm

impl Sync for Algorithm