Struct mimir::ODPISubscrMessage [−][src]
#[repr(C)]pub struct ODPISubscrMessage { pub event_type: ODPIEventType, pub db_name: *const c_char, pub db_name_length: u32, pub tables: *mut ODPISubscrMessageTable, pub num_tables: u32, pub queries: *mut ODPISubscrMessageQuery, pub num_queries: u32, pub error_info: *mut ODPIErrorInfo, pub tx_id: *const c_void, pub tx_id_length: u32, }
This structure is used for passing messages sent by notifications to subscriptions. It is the
second parameter to the callback method specified in the ODPISubscrCreateParams
structure.
Fields
event_type: ODPIEventType
Specifies the type of event that took place which generated the notification. It will be one
of the values from the enumeration ODPIEventType
.
db_name: *const c_char
Specifies the name of the database which generated the notification, as a byte string in the encoding used for CHAR data.
db_name_length: u32
Specifies the length of the db_name
member, in bytes.
tables: *mut ODPISubscrMessageTable
Specifies a pointer to an array of ODPISubscrMessageTable
structures representing the list
of tables that were modified and generated this notification. This value will be NULL if the
value of the event_type
member is not equal to DPI_EVENT_OBJCHANGE.
num_tables: u32
Specifies the number of structures available in the tables
member.
queries: *mut ODPISubscrMessageQuery
Specifies a pointer to an array of ODPISubscrMessageQuery
structures representing the list
of queries that were modified and generated this notification. This value will be NULL if
the value of the event_type
member is not equal to DPI_EVENT_QUERYCHANGE.
num_queries: u32
Specifies the number of structures available in the queries
member.
error_info: *mut ODPIErrorInfo
Specifies a pointer to a ODPIErrorInfo
structure. This value will be NULL if no error has
taken place. If this value is not NULL the other members in this structure may not contain
valid values.
tx_id: *const c_void
txid
tx_id_length: u32
txid length
Trait Implementations
impl Clone for ODPISubscrMessage
[src]
impl Clone for ODPISubscrMessage
fn clone(&self) -> ODPISubscrMessage
[src]
fn clone(&self) -> ODPISubscrMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ODPISubscrMessage
[src]
impl Copy for ODPISubscrMessage
impl Debug for ODPISubscrMessage
[src]
impl Debug for ODPISubscrMessage
Auto Trait Implementations
impl !Send for ODPISubscrMessage
impl !Send for ODPISubscrMessage
impl !Sync for ODPISubscrMessage
impl !Sync for ODPISubscrMessage