EventSender

Trait EventSender 

Source
pub trait EventSender: Send + Sync {
    // Required method
    fn send_event(&self, event: Event) -> Result<(), &'static str>;
}
Expand description

Event sending capability

Objects that can send events to other objects or channels.

Required Methods§

Source

fn send_event(&self, event: Event) -> Result<(), &'static str>

Send an event

§Arguments
  • event - The event to send
§Returns
  • Ok(()) on successful send
  • Err(error_message) on failure

Implementors§