Skip to main content

VoidObserver

Trait VoidObserver 

Source
pub trait VoidObserver: Send + Sync {
    // Required method
    fn on_event(&self, event: &VoidEvent);
}
Expand description

Observer trait for receiving void events.

Implement this trait to receive events from void-core operations. The observer must be thread-safe (Send + Sync) as it may be called from multiple threads during parallel operations.

Required Methods§

Source

fn on_event(&self, event: &VoidEvent)

Called when an event occurs.

§Arguments
  • event - The event that occurred.

Implementors§