pub(crate) struct Command {
pub(crate) name: &'static str,
pub(crate) args: &'static str,
pub(crate) help: &'static str,
pub(crate) run: &'static (dyn Fn(&mut AppState, &str) + Sync + Send + 'static),
}Fields§
§name: &'static str§args: &'static str§help: &'static str§run: &'static (dyn Fn(&mut AppState, &str) + Sync + Send + 'static)Auto Trait Implementations§
impl Freeze for Command
impl !RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin 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