pub enum AppAction {
RegisterCommand(String, Box<dyn CommandHandler>),
}Expand description
Actions that can be sent from async commands to the main application
Variants§
RegisterCommand(String, Box<dyn CommandHandler>)
Register a new command: (command_name, handler)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppAction
impl !RefUnwindSafe for AppAction
impl Send for AppAction
impl Sync for AppAction
impl Unpin for AppAction
impl !UnwindSafe for AppAction
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