Struct postgres::notification::Notifications
[−]
[src]
pub struct Notifications<'conn> {
// some fields omitted
}An iterator over asynchronous notifications.
Methods
impl<'conn> Notifications<'conn>
fn len(&self) -> usize
Returns the number of pending notifications.
fn iter<'a>(&'a self) -> Iter<'a>
Returns an iterator over pending notifications.
Note
This iterator may start returning Some after previously returning
None if more notifications are received.
fn blocking_iter<'a>(&'a self) -> BlockingIter<'a>
Returns an iterator over notifications, blocking until one is received if none are pending.
The iterator will never return None.