pub struct ShellCommand;Trait Implementations§
Source§impl Command for ShellCommand
impl Command for ShellCommand
fn name(&self) -> &'static str
fn help(&self) -> Option<&str>
fn validate(&self, args: &[String]) -> Result<(), String>
fn execute(&self, _args: &[String])
fn aliases(&self) -> &[&str]
Source§fn execute_with(&self, args: &[String], _registry: &CommandRegistry)
fn execute_with(&self, args: &[String], _registry: &CommandRegistry)
Execute with access to the registry context. Default delegates to
execute.
Commands that need registry access (e.g., help) can override this.Auto Trait Implementations§
impl Freeze for ShellCommand
impl RefUnwindSafe for ShellCommand
impl Send for ShellCommand
impl Sync for ShellCommand
impl Unpin for ShellCommand
impl UnwindSafe for ShellCommand
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
Mutably borrows from an owned value. Read more