pub struct DatabaseDirectories {
    pub path: String,
    pub legacy_path: String,
    pub genesis_hash: H256,
    pub fork_name: Option<String>,
    pub spec_name: String,
}
Expand description

Database directories for the given fork.

Fields

path: String

Base path

legacy_path: String

Legacy path

genesis_hash: H256

Genesis hash

fork_name: Option<String>

Name of current fork

spec_name: String

Name of current spec

Implementations

Base DB directory for the given fork.

Spec root directory for the given fork.

Generic client path

DB root path, named after genesis hash

DB path

Get the root path for database

Get user defaults path, legacy way

Get snapshot path, legacy way

Get user defaults path, legacy way

Get user defauls path

Get the path for the snapshot directory given the genesis hash and fork name.

Get the path for the network directory.

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.