pub trait CsObserver:
Send
+ Sync
+ 'static {
// Required method
fn on_event(&self, event: CsEvent);
}Expand description
Observer that receives CS events.
Implementations must be non-blocking — the observer is called inline on the hot path. Use a channel or atomic buffer for expensive processing.