pub trait NotificationReceiver: Send + Sync {
// Required methods
fn receive(&self) -> Option<NotificationId>;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}Expand description
Represents the side that receives event notifications
Required Methods§
Sourcefn receive(&self) -> Option<NotificationId>
fn receive(&self) -> Option<NotificationId>
Retrieves the next notification, if there’s any