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