Struct postgres::notification::Notifications [] [src]

pub struct Notifications<'conn> {
    // some fields omitted
}

Notifications from the Postgres backend.

Methods

impl<'conn> Notifications<'conn>
[src]

Returns the number of pending notifications.

Determines if there are any pending notifications.

Returns an iterator over pending notifications.

Note

This iterator may start returning Some after previously returning None if more notifications are received.

Returns an iterator over notifications that blocks until one is received if none are pending.

The iterator will never return None.

Returns an iterator over notifications that blocks for a limited time waiting to receive one if none are pending.

Note

This iterator may start returning Some after previously returning None if more notifications are received.

Trait Implementations

impl<'a> Debug for Notifications<'a>
[src]

Formats the value using the given formatter.

impl<'a, 'conn> IntoIterator for &'a Notifications<'conn>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more