Struct bitcoin_argsman::ArgsManager
source · pub struct ArgsManager {
pub cs_args: Arc<Mutex<ArgsManagerInner>>,
}Fields§
§cs_args: Arc<Mutex<ArgsManagerInner>>Implementations§
source§impl ArgsManager
impl ArgsManager
pub fn add_command(&mut self, cmd: &str, help: &str)
pub fn add_arg(&mut self, x: &ArgDescriptor)
pub fn setup_cli_args(&mut self)
pub fn setup_chain_params_base_options(&mut self)
pub fn clear_args(&mut self)
pub fn clear_path_cache(&mut self)
pub fn get_arg_flags(&self, name: &str) -> Option<u32>
pub fn get_args(&self, str_arg: &str) -> Vec<String>
pub fn get_arg(&self, str_arg: &str, str_default: &str) -> String
pub fn get_int_arg(&self, str_arg: &str, n_default: i64) -> i64
pub fn get_bool_arg(&self, str_arg: &str, default: bool) -> bool
pub fn get_blocks_dir_path(&self) -> Box<Path>
pub fn get_chain_name(&mut self) -> Result<String, StdException>
pub fn get_command(&self) -> Option<ArgsManagerCommand>
pub fn get_data_dir_base(&self) -> PathBuf
pub fn get_data_dir_net(&self) -> PathBuf
pub fn get_data_dir(&self, net_specific: bool) -> PathBuf
pub fn get_help_message(&self) -> String
pub fn get_settings_path( &self, filepath: Option<&mut Box<Path>>, temp: Option<bool> ) -> bool
pub fn get_setting(&self, arg: &str) -> SettingsValue
pub fn get_settings_list(&self, arg: &str) -> Vec<SettingsValue>
pub fn get_unrecognized_sections(&self) -> LinkedList<SectionInfo>
pub fn help_requested(&self) -> bool
pub fn setup_help_options(&mut self)
pub fn log_args_prefix( &self, prefix: &str, section: &str, args: &HashMap<String, Vec<SettingsValue>> )
pub fn log_args(&self)
pub fn parse_parameters( &mut self, argv: &Vec<String>, error: &mut String ) -> bool
pub fn is_arg_set(&self, str_arg: &str) -> bool
pub fn is_arg_negated(&self, str_arg: &str) -> bool
pub fn read_config_stream<R: Read>( &mut self, stream: &mut BufReader<R>, filepath: &str, error: &mut String, ignore_invalid_keys: Option<bool> ) -> bool
pub fn read_config_files( &mut self, error: &mut String, ignore_invalid_keys: Option<bool> ) -> bool
pub fn select_config_network(&mut self, network: &str)
pub fn soft_set_arg(&mut self, str_arg: &str, str_value: &str) -> bool
pub fn force_set_arg(&mut self, str_arg: &str, str_value: &str)
pub fn soft_set_bool_arg(&mut self, str_arg: &str, value: bool) -> bool
pub fn init_settings(&mut self, error: &mut String) -> Result<(), String>
pub fn read_settings_file(&mut self, errors: Option<&mut Vec<String>>) -> bool
pub fn write_settings_file( &self, errors: Option<&mut Vec<String>> ) -> Result<bool, StdException>
pub fn use_default_section(&self, arg: &str) -> bool
source§impl ArgsManager
impl ArgsManager
sourcepub fn get_unsuitable_section_only_args(&self) -> HashSet<String>
pub fn get_unsuitable_section_only_args(&self) -> HashSet<String>
| Log warnings for options in m_section_only_args | when they are specified in the default | section but not overridden on the command | line or in a network-specific section | in the config file. |
Trait Implementations§
source§impl Default for ArgsManager
impl Default for ArgsManager
source§fn default() -> ArgsManager
fn default() -> ArgsManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ArgsManager
impl Send for ArgsManager
impl Sync for ArgsManager
impl Unpin for ArgsManager
impl !UnwindSafe for ArgsManager
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more