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: boolSpecify the development chain.
This flag sets --chain=dev, --force-authoring, --rpc-cors=all, --alice, and --tmp
flags, unless explicitly overridden. It also disables local peer discovery (see --no-mdns
and --discover-local). With this flag some nodes might start with manual seal, producing
blocks at certain events (e.g. polkadot-omni-node, which produces blocks at certain
intervals dictated by --dev-block-time).
base_path: Option<PathBuf>Specify custom base path.
log: Vec<String>Sets a custom logging filter (syntax: <target>=<level>).
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>.
Multiple <target>=<level> entries can be specified and separated by a comma.
Example: --log error,sync=debug,grandpa=warn.
Sets Global log level to error, sets sync target to debug and grandpa target to warn.
detailed_log_output: boolEnable detailed log output.
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: boolDisable log color output.
enable_log_reloading: boolEnable 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 (--log).
tracing_receiver: TracingReceiverReceiver 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 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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
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§impl<T> Instrument for T
impl<T> Instrument for T
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
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§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.