Trait executors::Task
[−]
[src]
pub trait Task: Send + 'static {
type Result: Send + 'static;
type Error: Send + 'static;
fn call(self) -> Result<Self::Result, Self::Error>;
}Some work to be done in a thread pool
Associated Types
Required Methods
Implementors
impl<R, E> Task for ClosureTask<R, E> where R: Send + 'static, E: Send + 'static