pub struct Notification {
pub pid: i32,
pub channel: String,
pub payload: String,
}Expand description
A notification received during normal query processing.
When the read loop encounters a NotificationResponse during queries,
it is buffered here instead of being dropped. Call
[Connection::drain_notifications] to retrieve and clear the buffer.
Fields§
§pid: i32Backend process ID that sent the notification.
channel: StringChannel name.
payload: StringPayload string (may be empty).
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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