Trait tikv_util::worker::pool::Runnable[][src]

pub trait Runnable: Send {
    type Task: Display + Send + 'static;
    fn run(&mut self, _: Self::Task) { ... }
fn on_tick(&mut self) { ... }
fn shutdown(&mut self) { ... } }

Associated Types

type Task: Display + Send + 'static[src]

Loading content...

Provided methods

fn run(&mut self, _: Self::Task)[src]

Runs a task.

fn on_tick(&mut self)[src]

fn shutdown(&mut self)[src]

Loading content...

Implementors

Loading content...