[][src]Trait blackhole::Job

pub trait Job: Send + 'static {
    fn run(&mut self) -> Option<Box<dyn Job>>;
}

A job to be used by Blackhole

Usage

You can return new job from ::run() for it to be run.

Required methods

fn run(&mut self) -> Option<Box<dyn Job>>

Loading content...

Implementors

impl<F> Job for OneTime<F> where
    F: FnOnce() + Send + 'static, 
[src]

Loading content...