pub enum Command {
Logs(String, i32),
HealthCheckAll,
HealthCheck(String),
Nothing,
Alarm(AlarmCommand),
EventList,
Help(Option<String>),
}Variants§
Logs(String, i32)
HealthCheckAll
HealthCheck(String)
Nothing
Alarm(AlarmCommand)
EventList
Help(Option<String>)
Implementations§
Source§impl Command
impl Command
pub fn meta(&self) -> Option<&'static CommandMeta>
pub fn all_docs() -> &'static [&'static CommandMeta]
pub fn render_help_all() -> String
pub fn render_help_one(name: &str) -> Option<String>
Trait Implementations§
Source§impl Run for Command
impl Run for Command
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
handler: &'life1 mut GeneralHandler,
id: String,
message: &'life2 Message,
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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