1 2 3 4 5 6 7 8 9 10 11 12 13 14
use super::Notifier; use const_init::ConstInit; pub struct Blocking; // Blocking performs no notification impl Notifier for Blocking { fn wake_one_consumer(&self) {} fn wake_one_producer(&self) {} } impl ConstInit for Blocking { const INIT: Self = Blocking; }