pub struct NotificationReceiver { /* private fields */ }Expand description
A receiver for PG notifications.
Implementations§
Source§impl NotificationReceiver
impl NotificationReceiver
Sourcepub async fn recv(&mut self) -> Option<Notification>
pub async fn recv(&mut self) -> Option<Notification>
Wait for the next notification.
Returns None if the dispatcher has been dropped (no more notifications).
Skips over lagged messages (if the receiver falls behind).
Auto Trait Implementations§
impl Freeze for NotificationReceiver
impl RefUnwindSafe for NotificationReceiver
impl Send for NotificationReceiver
impl Sync for NotificationReceiver
impl Unpin for NotificationReceiver
impl UnsafeUnpin for NotificationReceiver
impl UnwindSafe for NotificationReceiver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more