pub struct SubscribeOk {
pub subscribe_id: VarInt,
pub expires: VarInt,
pub group_order: GroupOrder,
pub content_exists: ContentExists,
pub largest_group_id: Option<VarInt>,
pub largest_object_id: Option<VarInt>,
pub parameters: Vec<KeyValuePair>,
}Expand description
SUBSCRIBE_OK message (type 0x04).
Fields§
§subscribe_id: VarIntThe subscribe ID this response corresponds to.
expires: VarIntThe expiration time for this subscription in milliseconds.
group_order: GroupOrderThe group delivery order chosen by the publisher.
content_exists: ContentExistsWhether the largest location is included.
largest_group_id: Option<VarInt>Present only when content_exists == HasLargestLocation.
largest_object_id: Option<VarInt>Present only when content_exists == HasLargestLocation.
parameters: Vec<KeyValuePair>Subscribe OK parameters.
Trait Implementations§
Source§impl Clone for SubscribeOk
impl Clone for SubscribeOk
Source§fn clone(&self) -> SubscribeOk
fn clone(&self) -> SubscribeOk
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 SubscribeOk
impl Debug for SubscribeOk
Source§impl PartialEq for SubscribeOk
impl PartialEq for SubscribeOk
impl Eq for SubscribeOk
impl StructuralPartialEq for SubscribeOk
Auto Trait Implementations§
impl Freeze for SubscribeOk
impl RefUnwindSafe for SubscribeOk
impl Send for SubscribeOk
impl Sync for SubscribeOk
impl Unpin for SubscribeOk
impl UnsafeUnpin for SubscribeOk
impl UnwindSafe for SubscribeOk
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