Struct dir::DatabaseDirectories[][src]

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

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

impl DatabaseDirectories[src]

pub fn legacy_fork_path(&self) -> PathBuf[src]

Base DB directory for the given fork.

pub fn spec_root_path(&self) -> PathBuf[src]

Spec root directory for the given fork.

pub fn client_path(&self, pruning: Algorithm) -> PathBuf[src]

Generic client path

pub fn db_root_path(&self) -> PathBuf[src]

DB root path, named after genesis hash

pub fn db_path(&self, pruning: Algorithm) -> PathBuf[src]

DB path

pub fn legacy_version_path(&self, pruning: Algorithm) -> PathBuf[src]

Get the root path for database

pub fn legacy_user_defaults_path(&self) -> PathBuf[src]

Get user defaults path, legacy way

pub fn legacy_snapshot_path(&self) -> PathBuf[src]

Get snapshot path, legacy way

pub fn legacy_network_path(&self) -> PathBuf[src]

Get user defaults path, legacy way

pub fn user_defaults_path(&self) -> PathBuf[src]

Get user defauls path

pub fn snapshot_path(&self) -> PathBuf[src]

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

pub fn network_path(&self) -> PathBuf[src]

Get the path for the network directory.

Trait Implementations

impl Debug for DatabaseDirectories[src]

impl PartialEq<DatabaseDirectories> for DatabaseDirectories[src]

impl StructuralPartialEq for DatabaseDirectories[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

impl<T> MaybeDebug for T where
    T: Debug

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>,