#[repr(C)]pub struct dpiMsgRecipient {
pub name: *const c_char,
pub nameLength: u32,
}Expand description
This structure is used to set recipients for an AQ message.
A list of recipient names can be associated with a message at the time a message is enqueued. This allows a limited set of recipients to dequeue each message. The recipient list associated with the message overrides the queue subscriber list, if there is one. The recipient names need not be in the subscriber list but can be, if desired.
To dequeue a message, the consumername attribute can be set to one of the recipient names. The original message recipient list is not available on dequeued messages. All recipients have to dequeue a message before it gets removed from the queue.
Subscribing to a queue is like subscribing to a magazine: each subscriber can dequeue all the messages placed into a specific queue, just as each magazine subscriber has access to all its articles. Being a recipient, however, is like getting a letter: each recipient is a designated target of a particular message.
Fields§
§name: *const c_charSpecifies the name of the message recipient, in the encoding used for CHAR data.
nameLength: u32Specifies the length of the [dpiMsgRecipient.name] member, in
bytes.
Trait Implementations§
Source§impl Clone for dpiMsgRecipient
impl Clone for dpiMsgRecipient
Source§fn clone(&self) -> dpiMsgRecipient
fn clone(&self) -> dpiMsgRecipient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more