[][src]Struct tibco_ems::Message

pub struct Message {
    pub message_type: MessageType,
    pub reply_to: Option<Destination>,
    // some fields omitted
}

represents a generic Message which can be transformed into a TextMessage or BytesMessage through From,Into trait.

Fields

message_type: MessageType

type of the message, currenlty on TextMessage is supported

reply_to: Option<Destination>

reply to header

Implementations

impl Message[src]

pub fn confirm(&self)[src]

confirms the message by invoking tibemsMsg_Acknowledge

pub fn rollback(&self)[src]

rolls the message back by invoking tibemsMsg_Recover

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Drop for Message[src]

impl<'_> From<&'_ Message> for TextMessage[src]

impl<'_> From<&'_ Message> for BytesMessage[src]

impl From<BytesMessage> for Message[src]

impl From<Message> for TextMessage[src]

impl From<Message> for BytesMessage[src]

impl From<TextMessage> for Message[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.