1 2 3 4 5 6 7 8 9 10
pub trait ChangeNotifier: Clone + Sync + Send + 'static { fn send(&mut self, id: u64); } #[derive(Clone, Debug)] pub struct NoopNotifier; impl ChangeNotifier for NoopNotifier { fn send(&mut self, _id: u64) {} }