pub enum AppAction {
RegisterCommand(String, Box<dyn CommandHandler>),
Info(String),
Debug(String),
Warn(String),
Error(String),
Critical(String),
Logger(LogLevel, String, Option<String>, Option<bool>),
}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)
Info(String)
Log an info message
Debug(String)
Log a debug message
Warn(String)
Log a warn message
Error(String)
Log an error message
Critical(String)
Log a critical message
Logger(LogLevel, String, Option<String>, Option<bool>)
Unified logger to log any message
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