pub struct NotificationMessage {
pub msg_type: u32,
pub dbname: Option<String>,
pub txid: Option<Vec<u8>>,
pub registered: bool,
pub queue_name: Option<String>,
pub consumer_name: Option<String>,
pub msgid: Option<Vec<u8>>,
pub tables: Vec<MsgTable>,
pub queries: Vec<MsgQuery>,
}Expand description
A single decoded OAC notification record handed to the user callback.
Fields§
§msg_type: u32EVENT_* value placed on Message.type.
dbname: Option<String>§txid: Option<Vec<u8>>Thin never decodes the transaction id (14 bytes skipped); always None.
registered: bool§queue_name: Option<String>§consumer_name: Option<String>§msgid: Option<Vec<u8>>§tables: Vec<MsgTable>§queries: Vec<MsgQuery>Trait Implementations§
Source§impl Clone for NotificationMessage
impl Clone for NotificationMessage
Source§fn clone(&self) -> NotificationMessage
fn clone(&self) -> NotificationMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationMessage
impl Debug for NotificationMessage
impl Eq for NotificationMessage
Source§impl PartialEq for NotificationMessage
impl PartialEq for NotificationMessage
Source§fn eq(&self, other: &NotificationMessage) -> bool
fn eq(&self, other: &NotificationMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationMessage
Auto Trait Implementations§
impl Freeze for NotificationMessage
impl RefUnwindSafe for NotificationMessage
impl Send for NotificationMessage
impl Sync for NotificationMessage
impl Unpin for NotificationMessage
impl UnsafeUnpin for NotificationMessage
impl UnwindSafe for NotificationMessage
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