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.

Trait Implementations

impl<'a> Debug for Notifications<'a>

fn fmt(&self, fmt: &mut Formatter) -> Result

impl<'a, 'conn> IntoIterator for &'a Notifications<'conn>

type Item = Notification

type IntoIter = Iter<'a>

fn into_iter(self) -> Iter<'a>