Struct tibco_ems::Message[][src]

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]

fn clone(&self) -> Message[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Message[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Drop for Message[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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

fn from(msg: &Message) -> Self[src]

Performs the conversion.

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

fn from(msg: &Message) -> Self[src]

Performs the conversion.

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

fn from(msg: &Message) -> Self[src]

Performs the conversion.

impl From<BytesMessage> for Message[src]

fn from(msg: BytesMessage) -> Self[src]

Performs the conversion.

impl From<MapMessage> for Message[src]

fn from(msg: MapMessage) -> Self[src]

Performs the conversion.

impl From<Message> for TextMessage[src]

fn from(msg: Message) -> Self[src]

Performs the conversion.

impl From<Message> for BytesMessage[src]

fn from(msg: Message) -> Self[src]

Performs the conversion.

impl From<Message> for MapMessage[src]

fn from(msg: Message) -> Self[src]

Performs the conversion.

impl From<TextMessage> for Message[src]

fn from(msg: TextMessage) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.