Struct sc_cli::SharedParams
source · pub struct SharedParams {
pub chain: Option<String>,
pub dev: bool,
pub base_path: Option<PathBuf>,
pub log: Vec<String>,
pub detailed_log_output: bool,
pub disable_log_color: bool,
pub enable_log_reloading: bool,
pub tracing_targets: Option<String>,
pub tracing_receiver: TracingReceiver,
}
Expand description
Shared parameters used by all CoreParams
.
Fields§
§chain: Option<String>
Specify the chain specification.
It can be one of the predefined ones (dev, local, or staging) or it can be a path to a file
with the chainspec (such as one exported by the build-spec
subcommand).
dev: bool
Specify the development chain.
This flag sets --chain=dev
, --force-authoring
, --rpc-cors=all
,
--alice
, and --tmp
flags, unless explicitly overridden.
base_path: Option<PathBuf>
Specify custom base path.
log: Vec<String>
Sets a custom logging filter. Syntax is <target>=<level>
, e.g. -lsync=debug.
Log levels (least to most verbose) are error, warn, info, debug, and trace.
By default, all targets log info
. The global log level can be set with -l<level>
.
detailed_log_output: bool
Enable detailed log output.
This includes displaying the log target, log level and thread name.
This is automatically enabled when something is logged with any higher level than info
.
disable_log_color: bool
Disable log color output.
enable_log_reloading: bool
Enable feature to dynamically update and reload the log filter.
Be aware that enabling this feature can lead to a performance decrease up to factor six or
more. Depending on the global logging level the performance decrease changes.
The system_addLogFilter
and system_resetLogFilter
RPCs will have no effect with this
option not being set.
tracing_targets: Option<String>
Sets a custom profiling filter. Syntax is the same as for logging: <target>=<level>
.
tracing_receiver: TracingReceiver
Receiver to process tracing messages.
Implementations§
sourcepub fn log_filters(&self) -> &[String]
pub fn log_filters(&self) -> &[String]
Get the filters for the logging
sourcepub fn detailed_log_output(&self) -> bool
pub fn detailed_log_output(&self) -> bool
Should the detailed log output be enabled.
sourcepub fn disable_log_color(&self) -> bool
pub fn disable_log_color(&self) -> bool
Should the log color output be disabled?
sourcepub fn enable_log_reloading(&self) -> bool
pub fn enable_log_reloading(&self) -> bool
Is log reloading enabled
sourcepub fn tracing_receiver(&self) -> TracingReceiver
pub fn tracing_receiver(&self) -> TracingReceiver
Receiver to process tracing messages.
sourcepub fn tracing_targets(&self) -> Option<String>
pub fn tracing_targets(&self) -> Option<String>
Comma separated list of targets for tracing.
Trait Implementations§
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§fn clone(&self) -> SharedParams
fn clone(&self) -> SharedParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.Auto Trait Implementations§
Blanket Implementations§
fn __clone_box(&self, _: Private) -> *mut ()
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read moresource§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.