Struct frontier_template_node::cli::Cli
source · pub struct Cli {
pub subcommand: Option<Subcommand>,
pub run: RunCmd,
pub sealing: Option<Sealing>,
pub eth: EthConfiguration,
}
Fields§
§subcommand: Option<Subcommand>
§run: RunCmd
§sealing: Option<Sealing>
Choose sealing method.
eth: EthConfiguration
Trait Implementations§
source§impl Args for Cli
impl Args for Cli
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
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§impl FromArgMatches for Cli
impl FromArgMatches for Cli
source§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>
Assign values from
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>
Assign values from
ArgMatches
to self
.source§impl Parser for Cli
impl Parser for Cli
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error.
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
source§impl SubstrateCli for Cli
impl SubstrateCli for Cli
source§fn impl_version() -> String
fn impl_version() -> String
Implementation version. Read more
source§fn description() -> String
fn description() -> String
Executable file description.
Executable file author.
source§fn support_url() -> String
fn support_url() -> String
Support URL.
source§fn copyright_start_year() -> i32
fn copyright_start_year() -> i32
Copyright starting year (x-current year)
§fn executable_name() -> String
fn executable_name() -> String
Executable file name. Read more
§fn from_args() -> Selfwhere
Self: Parser + Sized,
fn from_args() -> Selfwhere
Self: Parser + Sized,
Helper function used to parse the command line arguments. This is the equivalent of
[
clap::Parser::parse()
]. Read more§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Helper function used to parse the command line arguments. This is the equivalent of
[
clap::Parser::parse_from
]. Read more§fn try_from_iter<I>(iter: I) -> Result<Self, Error>
fn try_from_iter<I>(iter: I) -> Result<Self, Error>
Helper function used to parse the command line arguments. This is the equivalent of
[
clap::Parser::try_parse_from
] Read more§fn create_configuration<T, DVC>(
&self,
command: &T,
tokio_handle: Handle
) -> Result<Configuration, Error>where
T: CliConfiguration<DVC>,
DVC: DefaultConfigurationValues,
fn create_configuration<T, DVC>(
&self,
command: &T,
tokio_handle: Handle
) -> Result<Configuration, Error>where
T: CliConfiguration<DVC>,
DVC: DefaultConfigurationValues,
Only create a Configuration for the command provided in argument
§fn create_runner<T, DVC>(&self, command: &T) -> Result<Runner<Self>, Error>where
T: CliConfiguration<DVC>,
DVC: DefaultConfigurationValues,
fn create_runner<T, DVC>(&self, command: &T) -> Result<Runner<Self>, Error>where
T: CliConfiguration<DVC>,
DVC: DefaultConfigurationValues,
Create a runner for the command provided in argument. This will create a Configuration and
a tokio runtime
§fn create_runner_with_logger_hook<T, F>(
&self,
command: &T,
logger_hook: F
) -> Result<Runner<Self>, Error>where
T: CliConfiguration,
F: FnOnce(&mut LoggerBuilder, &Configuration),
fn create_runner_with_logger_hook<T, F>(
&self,
command: &T,
logger_hook: F
) -> Result<Runner<Self>, Error>where
T: CliConfiguration,
F: FnOnce(&mut LoggerBuilder, &Configuration),
Create a runner for the command provided in argument. The
logger_hook
can be used to setup
a custom profiler or update the logger configuration before it is initialized. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Mutably borrows from an owned value. Read more
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
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>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.