Struct ckb_freezer::Freezer[][src]

pub struct Freezer {
    pub stopped: Arc<AtomicBool>,
    // some fields omitted
}
Expand description

Freezer is an memory mapped append-only database to store immutable chain data into flat files

Fields

stopped: Arc<AtomicBool>

stop flag

Implementations

Creates a freezer at specified path

Creates a freezer at temporary path

Freeze background process that periodically checks the chain data for any import progress and moves ancient data from the kv-db into the freezer.

Retrieve an item with the given number

Return total item number in the freezer

Truncate discards any recent data above the provided threshold number.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.