pub struct Subscription { /* private fields */ }
Expand description
A subscription to receive messages from a particular Subject
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn queue_group(&self) -> Option<&str>
pub fn queue_group(&self) -> Option<&str>
The optional queue group of the subscription
Sourcepub fn unsubscribe_after(&self) -> Option<u64>
pub fn unsubscribe_after(&self) -> Option<u64>
If this is of type Some
, it means the subscription will automatically unsubscribe
after receiving the indicated number of messages
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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