pub struct PgNotification {
pub channel: String,
pub payload: String,
pub process_id: i32,
}Expand description
A notification received via the PostgreSQL LISTEN/NOTIFY mechanism.
Fields§
§channel: StringThe channel name on which the notification was raised.
payload: StringThe payload string passed by the notifying backend.
process_id: i32The process ID of the notifying backend process.
Trait Implementations§
Source§impl Clone for PgNotification
impl Clone for PgNotification
Source§impl Debug for PgNotification
impl Debug for PgNotification
Source§impl From<Notification> for PgNotification
impl From<Notification> for PgNotification
Source§fn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PgNotification
impl RefUnwindSafe for PgNotification
impl Send for PgNotification
impl Sync for PgNotification
impl Unpin for PgNotification
impl UnsafeUnpin for PgNotification
impl UnwindSafe for PgNotification
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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