Struct dir::DatabaseDirectories [−][src]
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]
fn eq(&self, other: &DatabaseDirectories) -> bool
[src]
fn ne(&self, other: &DatabaseDirectories) -> bool
[src]
impl StructuralPartialEq for DatabaseDirectories
[src]
Auto Trait Implementations
impl RefUnwindSafe for DatabaseDirectories
impl Send for DatabaseDirectories
impl Sync for DatabaseDirectories
impl Unpin for DatabaseDirectories
impl UnwindSafe for DatabaseDirectories
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,