pub struct Session { /* private fields */ }
Expand description
holds the native Session pointer
Implementations§
Source§impl Session
impl Session
Sourcepub fn queue_consumer(
&self,
destination: &Destination,
selector: Option<&str>,
) -> Result<Consumer, Error>
pub fn queue_consumer( &self, destination: &Destination, selector: Option<&str>, ) -> Result<Consumer, Error>
open a message consumer for a queue
Sourcepub fn topic_consumer(
&self,
destination: &Destination,
subscription_name: &str,
selector: Option<&str>,
) -> Result<Consumer, Error>
pub fn topic_consumer( &self, destination: &Destination, subscription_name: &str, selector: Option<&str>, ) -> Result<Consumer, Error>
open a message consumer for a topic
Sourcepub fn topic_durable_consumer(
&self,
destination: &Destination,
durable_name: &str,
selector: Option<&str>,
) -> Result<Consumer, Error>
pub fn topic_durable_consumer( &self, destination: &Destination, durable_name: &str, selector: Option<&str>, ) -> Result<Consumer, Error>
open a durable message consumer for a topic
Sourcepub fn send_message<M: Into<Message>>(
&self,
destination: &Destination,
message: M,
) -> Result<(), Error>
pub fn send_message<M: Into<Message>>( &self, destination: &Destination, message: M, ) -> Result<(), Error>
sending a message to a destination (only queues are supported)
Sourcepub fn request_reply<M: Into<Message>>(
&self,
destination: &Destination,
message: M,
timeout: i64,
) -> Result<Option<Message>, Error>
pub fn request_reply<M: Into<Message>>( &self, destination: &Destination, message: M, timeout: i64, ) -> Result<Option<Message>, Error>
request/reply
Trait Implementations§
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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