[−][src]Struct tari_common::configuration::bootstrap::ConfigBootstrap
Fields
base_path: PathBuf
A path to a directory to store your files
config: PathBuf
A path to the configuration file to use (config.toml)
log_config: PathBuf
The path to the log configuration file. It is set using the following precedence set
init: bool
Create a default configuration file if it doesn't exist
create_id: bool
Create and save new node identity if one doesn't exist
daemon_mode: bool
Run in daemon mode, with no interface
rebuild_db: bool
This will rebuild the db, adding block for block in
Implementations
impl ConfigBootstrap
[src]
pub fn init_dirs(
&mut self,
application_type: ApplicationType
) -> Result<(), ConfigError>
[src]
&mut self,
application_type: ApplicationType
) -> Result<(), ConfigError>
Initialize configuration and directories based on ConfigBootstrap options.
If not present it will create base directory (default ~/.tari/, depending on OS). Log and tari configs will be initialized in the base directory too.
Without --init
flag provided configuration and directories will be created only
after user's confirmation.
pub fn initialize_logging(&self) -> Result<(), ConfigError>
[src]
Set up application-level logging using the Log4rs configuration file based on supplied CLI arguments
pub fn load_configuration(&self) -> Result<Config, ConfigError>
[src]
Load configuration from files located based on supplied CLI arguments
Trait Implementations
impl Debug for ConfigBootstrap
[src]
impl Default for ConfigBootstrap
[src]
impl StructOpt for ConfigBootstrap
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
fn from_args() -> Self
[src]
fn from_args_safe() -> Result<Self, Error>
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for ConfigBootstrap
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigBootstrap
impl Send for ConfigBootstrap
impl Sync for ConfigBootstrap
impl Unpin for ConfigBootstrap
impl UnwindSafe for ConfigBootstrap
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> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
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<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,