pub struct CommandManager { /* private fields */ }Implementations§
Source§impl CommandManager
impl CommandManager
pub fn new() -> CommandManager
pub fn add_command(&mut self, name: String, command: Box<dyn Command>)
pub fn run(&self, args: Vec<String>) -> Result<(), CommandError>
Auto Trait Implementations§
impl Freeze for CommandManager
impl !RefUnwindSafe for CommandManager
impl !Send for CommandManager
impl !Sync for CommandManager
impl Unpin for CommandManager
impl !UnwindSafe for CommandManager
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