Trait mio_misc::queue::NotificationReceiver[][src]

pub trait NotificationReceiver: Send + Sync {
    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

Retrieves the next notification, if there’s any

Returns number of notifications

Returns true if the queue is empty.

Implementors