pub struct Subscribe {
pub subscribe_id: VarInt,
pub track_alias: VarInt,
pub track_namespace: TrackNamespace,
pub track_name: Vec<u8>,
pub subscriber_priority: u8,
pub group_order: GroupOrder,
pub filter_type: FilterType,
pub start_location: Option<Location>,
pub end_group: Option<VarInt>,
pub parameters: Vec<KeyValuePair>,
}Expand description
SUBSCRIBE message (type 0x03).
Draft-10: filter_type=1 (NextGroupStart) is rejected on decode.
Fields§
§subscribe_id: VarIntThe subscribe ID for this request.
track_alias: VarIntThe track alias assigned by the subscriber.
track_namespace: TrackNamespaceThe track namespace to subscribe to.
track_name: Vec<u8>The track name within the namespace.
subscriber_priority: u8The priority of this subscriber relative to others.
group_order: GroupOrderThe requested group delivery order.
filter_type: FilterTypeThe filter type controlling which objects are delivered.
start_location: Option<Location>Present only for AbsoluteStart and AbsoluteRange filter types.
end_group: Option<VarInt>Present only for AbsoluteRange filter type (end_group only, no end_object).
parameters: Vec<KeyValuePair>Subscribe parameters.
Trait Implementations§
impl Eq for Subscribe
impl StructuralPartialEq for Subscribe
Auto Trait Implementations§
impl Freeze for Subscribe
impl RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl UnsafeUnpin for Subscribe
impl UnwindSafe for Subscribe
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