pub struct HelloCommand;
Trait Implementations§
Source§impl Command for HelloCommand
impl Command for HelloCommand
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 HelloCommand
impl RefUnwindSafe for HelloCommand
impl Send for HelloCommand
impl Sync for HelloCommand
impl Unpin for HelloCommand
impl UnwindSafe for HelloCommand
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