Struct dir::Directories
source · [−]pub struct Directories {
pub base: String,
pub db: String,
pub cache: String,
pub keys: String,
pub signer: String,
pub secretstore: String,
}
Expand description
Parity local data directories
Fields
base: String
Base dir
db: String
Database dir
cache: String
Cache dir
keys: String
Dir to store keys
signer: String
Signer dir
secretstore: String
Secrets dir
Implementations
sourceimpl Directories
impl Directories
sourcepub fn create_dirs(
&self,
signer_enabled: bool,
secretstore_enabled: bool
) -> Result<(), String>
pub fn create_dirs(
&self,
signer_enabled: bool,
secretstore_enabled: bool
) -> Result<(), String>
Create local directories
sourcepub fn database(
&self,
genesis_hash: H256,
fork_name: Option<String>,
spec_name: String
) -> DatabaseDirectories
pub fn database(
&self,
genesis_hash: H256,
fork_name: Option<String>,
spec_name: String
) -> DatabaseDirectories
Database paths.
sourcepub fn legacy_keys_path(&self, testnet: bool) -> PathBuf
pub fn legacy_keys_path(&self, testnet: bool) -> PathBuf
Legacy keys path
Trait Implementations
sourceimpl Debug for Directories
impl Debug for Directories
sourceimpl Default for Directories
impl Default for Directories
sourceimpl PartialEq<Directories> for Directories
impl PartialEq<Directories> for Directories
sourcefn eq(&self, other: &Directories) -> bool
fn eq(&self, other: &Directories) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Directories) -> bool
fn ne(&self, other: &Directories) -> bool
This method tests for !=
.
impl StructuralPartialEq for Directories
Auto Trait Implementations
impl RefUnwindSafe for Directories
impl Send for Directories
impl Sync for Directories
impl Unpin for Directories
impl UnwindSafe for Directories
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more