pub trait Executor {
type Err: Into<Error>;
// Required method
fn execute<F>(&self, f: F) -> Result<(), Self::Err>
where F: FnOnce() + Send + 'static;
}
Expand description
Provides a mechanism for execute tasks.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.