pub trait Dispatchable: Send + 'static {
// Required method
fn run(self: Box<Self>);
}
Expand description
A trait for dispatching a closure. It’s implemented for all `FnOnce() + Send
- ’static
but may also be implemented for any other types that are
Sendand
’static`.