1 2 3 4 5 6 7 8 9 10 11 12 13
pub trait ConcurrentGCThread { fn should_terminate(&self) -> bool; fn has_terminated(&self) -> bool; fn create_and_start(&mut self); fn run_service(&mut self); fn stop_service(&mut self); fn run(&mut self); fn stop(&mut self); }