Struct postgres::notification::Notifications
[−]
[src]
pub struct Notifications<'conn> { /* fields omitted */ }
Notifications from the Postgres backend.
Methods
impl<'conn> Notifications<'conn>
[src]
fn len(&self) -> usize
[src]
Returns the number of pending notifications.
fn is_empty(&self) -> bool
[src]
Determines if there are any pending notifications.
fn iter<'a>(&'a self) -> Iter<'a>
[src]
Returns a fallible 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>
[src]
Returns a fallible iterator over notifications that blocks until one is received if none are pending.
The iterator will never return None
.
fn timeout_iter<'a>(&'a self, timeout: Duration) -> TimeoutIter<'a>
[src]
Returns a fallible 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]
impl<'a, 'conn> IntoFallibleIterator for &'a Notifications<'conn>
[src]
type Item = Notification
The elements of the iterator.
type Error = Error
The error value of the iterator.
type IntoIter = Iter<'a>
The iterator.
fn into_fallible_iterator(self) -> Iter<'a>
[src]
Creates a fallible iterator from a value.