pub struct Command<C> {
pub name: String,
pub requires_confirmation: bool,
pub executor: Box<dyn Fn(Arc<C>) -> Pin<Box<dyn Future<Output = Box<dyn Any + Send>> + Send>> + Send + Sync>,
}Fields§
§name: String§requires_confirmation: bool§executor: Box<dyn Fn(Arc<C>) -> Pin<Box<dyn Future<Output = Box<dyn Any + Send>> + Send>> + Send + Sync>Auto Trait Implementations§
impl<C> Freeze for Command<C>
impl<C> !RefUnwindSafe for Command<C>
impl<C> Send for Command<C>
impl<C> Sync for Command<C>
impl<C> Unpin for Command<C>
impl<C> !UnwindSafe for Command<C>
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