[−][src]Struct amadeus::prelude::postgres::_internal::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> !Send for Notifications<'conn>
impl<'conn> !Sync for Notifications<'conn>
impl<'conn> Unpin for Notifications<'conn>
impl<'conn> !UnwindSafe for Notifications<'conn>
impl<'conn> !RefUnwindSafe for Notifications<'conn>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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
impl<A, B> Downcast<A> for B where
A: DowncastImpl<B>,
[src]
A: DowncastImpl<B>,
fn downcast(self) -> Result<A, DowncastError>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.
fn meta(&self) -> <T as Type>::Meta
[src]
fn data(&self) -> *const ()
[src]
fn data_mut(&mut self) -> *mut ()
[src]
unsafe fn uninitialized_box(<T as Type>::Meta) -> Box<T>
[src]
fn meta_type(&self) -> MetaType
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(&self) -> <T as Type>::Meta
[src]
default fn data(&self) -> *const ()
[src]
default fn data_mut(&mut self) -> *mut ()
[src]
unsafe default fn uninitialized_box(t: <T as Type>::Meta) -> Box<T>
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(&self) -> MetaType
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,