pub enum Command<Cli: CommandLine> {
Server(Command<Cli::Backend>),
External(Cli::Subcommand),
}
Expand description
All available command line commands.
Variants§
Server(Command<Cli::Backend>)
Execute a BonsaiDb server command.
External(Cli::Subcommand)
An external command.
Implementations§
Trait Implementations§
source§impl<Cli: Debug + CommandLine> Debug for Command<Cli>where
Cli::Backend: Debug,
Cli::Subcommand: Debug,
impl<Cli: Debug + CommandLine> Debug for Command<Cli>where Cli::Backend: Debug, Cli::Subcommand: Debug,
source§impl<Cli: CommandLine> FromArgMatches for Command<Cli>
impl<Cli: CommandLine> FromArgMatches for Command<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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl<Cli: CommandLine> Subcommand for Command<Cli>
impl<Cli: CommandLine> Subcommand for Command<Cli>
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl<Cli> RefUnwindSafe for Command<Cli>where <Cli as CommandLine>::Backend: RefUnwindSafe, <Cli as CommandLine>::Subcommand: RefUnwindSafe,
impl<Cli> Send for Command<Cli>
impl<Cli> Sync for Command<Cli>
impl<Cli> Unpin for Command<Cli>where <Cli as CommandLine>::Backend: Unpin, <Cli as CommandLine>::Subcommand: Unpin,
impl<Cli> UnwindSafe for Command<Cli>where <Cli as CommandLine>::Backend: UnwindSafe, <Cli as CommandLine>::Subcommand: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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