pub trait EventSender<E>: Send + Sync {
    // Required method
    fn send_event(&self, event: E) -> Result<(), ReceiverDroppedError>;
}
Expand description

The event-sending half of an Event-Queue.

Event Senders can be freely, and safely cloned, given away, and even sent across threads.

Required Methods§

source

fn send_event(&self, event: E) -> Result<(), ReceiverDroppedError>

Sends an event to the receiver.

§Errors

Returns an error if the receiver has been dropped.

Implementors§