pub struct UnsubscribeMessage {
pub subscription_id: usize,
pub max_messages: Option<usize>,
}
Expand description
A struct that represents an unsubscribe message. This message conforms to the following format from the NATS protocol definition:
UNSUB <sid> [max_msgs]
Fields§
§subscription_id: usize
§max_messages: Option<usize>
Implementations§
Source§impl UnsubscribeMessage
impl UnsubscribeMessage
Trait Implementations§
Source§impl Clone for UnsubscribeMessage
impl Clone for UnsubscribeMessage
Source§fn clone(&self) -> UnsubscribeMessage
fn clone(&self) -> UnsubscribeMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnsubscribeMessage
impl Debug for UnsubscribeMessage
Source§impl Display for UnsubscribeMessage
impl Display for UnsubscribeMessage
Source§impl FromStr for UnsubscribeMessage
impl FromStr for UnsubscribeMessage
Source§impl PartialEq for UnsubscribeMessage
impl PartialEq for UnsubscribeMessage
impl StructuralPartialEq for UnsubscribeMessage
Auto Trait Implementations§
impl Freeze for UnsubscribeMessage
impl RefUnwindSafe for UnsubscribeMessage
impl Send for UnsubscribeMessage
impl Sync for UnsubscribeMessage
impl Unpin for UnsubscribeMessage
impl UnwindSafe for UnsubscribeMessage
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