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

Specifies the type of event that took place which generated the notification. It will be one of the values from the enumeration ODPIEventType.

Specifies the name of the database which generated the notification, as a byte string in the encoding used for CHAR data.

Specifies the length of the db_name member, in bytes.

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.

Specifies the number of structures available in the tables member.

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.

Specifies the number of structures available in the queries member.

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.

txid

txid length

Trait Implementations

impl Clone for ODPISubscrMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ODPISubscrMessage
[src]

impl Debug for ODPISubscrMessage
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations