[−][src]Struct c3p0_pool_pg::r2d2::postgres::notification::Notifications
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.
fn into_fallible_iterator(self) -> Iter<'a>
[src]
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self