Struct executors::ClosureTask [] [src]

pub struct ClosureTask<R, E> where R: Send + 'static, E: Send + 'static {
    // some fields omitted
}

Type for tasks that are just closures

Trait Implementations

impl<R, E> Task for ClosureTask<R, E> where R: Send + 'static, E: Send + 'static

type Result = R

type Error = E

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