pub struct SubscribeUpdate {
pub id: u64,
pub track_alias: u64,
pub track_namespace: String,
pub track_name: String,
pub subscriber_priority: u8,
pub group_order: GroupOrder,
pub filter_type: FilterType,
pub start: Option<SubscribePair>,
pub end: Option<SubscribePair>,
pub params: Params,
}
Expand description
Sent by the subscriber to request all future objects for the given track.
Objects will use the provided ID instead of the full track name, to save bytes.
Fields§
§id: u64
The subscription ID
track_alias: u64
Track properties
track_namespace: String
§track_name: String
§subscriber_priority: u8
§group_order: GroupOrder
§filter_type: FilterType
Filter type
start: Option<SubscribePair>
The start/end group/object. (TODO: Make optional)
end: Option<SubscribePair>
§params: Params
Optional parameters
Trait Implementations§
Source§impl Clone for SubscribeUpdate
impl Clone for SubscribeUpdate
Source§fn clone(&self) -> SubscribeUpdate
fn clone(&self) -> SubscribeUpdate
Returns a copy 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 SubscribeUpdate
impl Debug for SubscribeUpdate
Source§impl Decode for SubscribeUpdate
impl Decode for SubscribeUpdate
Source§impl Encode for SubscribeUpdate
impl Encode for SubscribeUpdate
Source§impl From<SubscribeUpdate> for Message
impl From<SubscribeUpdate> for Message
Source§fn from(m: SubscribeUpdate) -> Self
fn from(m: SubscribeUpdate) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeUpdate> for Subscriber
impl From<SubscribeUpdate> for Subscriber
Source§fn from(msg: SubscribeUpdate) -> Self
fn from(msg: SubscribeUpdate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubscribeUpdate
impl RefUnwindSafe for SubscribeUpdate
impl Send for SubscribeUpdate
impl Sync for SubscribeUpdate
impl Unpin for SubscribeUpdate
impl UnwindSafe for SubscribeUpdate
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