Skip to main content

SubCommand

Trait SubCommand 

Source
pub trait SubCommand {
    // Required methods
    fn name(&self) -> &str;
    fn inject_local_args(&self, command: &mut Command);

    // Provided methods
    fn global_opts(&self) -> Option<&GlobalOpts> { ... }
    fn inject_args(&self, command: &mut Command) { ... }
    fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn inject_local_args(&self, command: &mut Command)

Provided Methods§

Source

fn global_opts(&self) -> Option<&GlobalOpts>

Source

fn inject_args(&self, command: &mut Command)

Source

fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SubCommand for Add

Source§

impl SubCommand for Aliases

Source§

impl SubCommand for EndJournal

Available on non-crate feature lt2018_1 only.
Source§

impl SubCommand for Journal

Source§

impl SubCommand for ResourceMonitor

Available on non-crate feature lt2023_1 only.
Source§

impl SubCommand for Restart

Source§

impl SubCommand for SetLdapUsers

Available on non-crate feature lt2015_1 only.
Source§

impl SubCommand for Stop

Source§

impl SubCommand for SysInfo

Available on non-crate feature lt2023_1 only.
Source§

impl SubCommand for Where

Source§

impl<C: ExclusiveOption> SubCommand for CheckPoint<C>

Source§

impl<F: ExclusiveOption> SubCommand for Annotate<F>

Source§

impl<L: ExclusiveOption, H: ExclusiveOption> SubCommand for FileLog<L, H>

Source§

impl<L: ExclusiveOption> SubCommand for Changes<L>

Source§

impl<M: ExclusiveOption> SubCommand for Describe<M>

Source§

impl<M: ExclusiveOption> SubCommand for Edit<M>

Source§

impl<M: ExclusiveOption> SubCommand for Print<M>

Source§

impl<M: ExclusiveOption> SubCommand for ReplicaFilterReconcile<M>

Available on non-crate feature lt2025_2 only.
Source§

impl<M: ExclusiveOption> SubCommand for Sync<M>

Source§

impl<S: ExclusiveOption, T: ExclusiveOption> SubCommand for Attribute<S, T>

Source§

impl<S: ExclusiveOption> SubCommand for Archive<S>

Source§

impl<S: ExclusiveOption> SubCommand for UpdateSpecDepot<S>

Source§

impl<T: ExclusiveOption> SubCommand for ResetPassword<T>

Source§

impl<T: SubCommand> SubCommand for Admin<T>