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

type Result: Send + 'static

Task result

type Error: Send + 'static

Task error

Required Methods

fn call(self) -> Result<Self::Result, Self::Error>

Actual computation to be done

Implementors