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

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

Notifications from the Postgres backend.

Methods

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

pub fn len(&self) -> usize[src]

Returns the number of pending notifications.

pub fn is_empty(&self) -> bool[src]

Determines if there are any pending notifications.

pub fn iter(&'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.

pub fn blocking_iter(&'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.

pub fn timeout_iter(&'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.

Auto Trait Implementations

impl<'conn> Unpin for Notifications<'conn>

impl<'conn> !Send for Notifications<'conn>

impl<'conn> !Sync for Notifications<'conn>

impl<'conn> !RefUnwindSafe for Notifications<'conn>

impl<'conn> !UnwindSafe for Notifications<'conn>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self