pub struct PingCommand;
Trait Implementations§
Source§impl Command for PingCommand
impl Command for PingCommand
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 required_caps(&self) -> &[&str]
fn required_caps(&self) -> &[&str]
Capability requirements for visibility/authorization.
The parent application grants capabilities at runtime on the registry.
Default: no requirements.
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 PingCommand
impl RefUnwindSafe for PingCommand
impl Send for PingCommand
impl Sync for PingCommand
impl Unpin for PingCommand
impl UnwindSafe for PingCommand
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