pub struct CommandRegistry { /* private fields */ }Expand description
Registry for available CLI commands
Implementations§
Source§impl CommandRegistry
impl CommandRegistry
Sourcepub fn load_from(&mut self, source: Box<dyn CommandSource>)
pub fn load_from(&mut self, source: Box<dyn CommandSource>)
Load commands dynamically from a source (e.g. JSON, plugin)
Auto Trait Implementations§
impl Freeze for CommandRegistry
impl !RefUnwindSafe for CommandRegistry
impl !Send for CommandRegistry
impl !Sync for CommandRegistry
impl Unpin for CommandRegistry
impl !UnwindSafe for CommandRegistry
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