casbin-rs/src/watcher.rs (5 lines of code) (raw):

use crate::emitter::EventData; pub trait Watcher: Send + Sync { fn set_update_callback(&mut self, cb: Box<dyn FnMut() + Send + Sync>); fn update(&mut self, d: EventData); }