Struct solace_rs::message::inbound::InboundMessage
source · pub struct InboundMessage<'a> { /* private fields */ }Implementations§
source§impl<'a> InboundMessage<'a>
impl<'a> InboundMessage<'a>
pub fn get_receive_timestamp(&self) -> Result<Option<SystemTime>, SolaceError>
pub fn get_sender_id(&'a self) -> Result<Option<&'a str>, SolaceError>
pub fn is_discard_indication(&self) -> bool
Trait Implementations§
source§impl Drop for InboundMessage<'_>
impl Drop for InboundMessage<'_>
source§impl From<*mut c_void> for InboundMessage<'_>
impl From<*mut c_void> for InboundMessage<'_>
source§fn from(ptr: solClient_opaqueMsg_pt) -> Self
fn from(ptr: solClient_opaqueMsg_pt) -> Self
.
Safety
From a valid owned pointer. No other alias should exist for this pointer InboundMessage will try to free the ptr when it is destroyed
.
source§impl<'a> Message<'a> for InboundMessage<'a>
impl<'a> Message<'a> for InboundMessage<'a>
source§unsafe fn get_raw_message_ptr(&self) -> solClient_opaqueMsg_pt
unsafe fn get_raw_message_ptr(&self) -> solClient_opaqueMsg_pt
fn get_payload(&'a self) -> Result<Option<&'a [u8]>, SolaceError>
fn get_application_message_id(&'a self) -> Option<&'a str>
fn get_application_msg_type(&'a self) -> Option<&'a str>
fn get_class_of_service(&'a self) -> Result<ClassOfService, SolaceError>
fn get_correlation_id(&'a self) -> Result<Option<&'a str>, SolaceError>
fn get_expiration(&'a self) -> i64
fn get_priority(&'a self) -> Result<Option<u8>, SolaceError>
fn get_sequence_number(&'a self) -> Result<Option<i64>, SolaceError>
fn get_destination(&'a self) -> Result<Option<MessageDestination>, SolaceError>
fn get_sender_timestamp(&'a self) -> Result<Option<SystemTime>, SolaceError>
fn get_user_data(&'a self) -> Result<Option<&'a [u8]>, SolaceError>
impl Send for InboundMessage<'_>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InboundMessage<'a>
impl<'a> !Sync for InboundMessage<'a>
impl<'a> Unpin for InboundMessage<'a>
impl<'a> UnwindSafe for InboundMessage<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more