#[repr(u64)]pub enum MessageType {
Show 18 variants
RequestUpdate = 2,
Subscribe = 3,
SubscribeOk = 4,
RequestError = 5,
PublishNamespace = 6,
RequestOk = 7,
Namespace = 8,
PublishDone = 11,
TrackStatus = 13,
NamespaceDone = 14,
PublishSkipped = 15,
GoAway = 16,
Fetch = 22,
Publish = 29,
PublishStateNotify = 34,
SubscribeNamespace = 80,
SubscribeTracks = 81,
Setup = 12_032,
}Expand description
The control message types draft-23 Section 9, Table 5 assigns.
Table 5 lists 0x18 as RESERVED, FETCH_OK in drafts up to 22: a FETCH is answered with REQUEST_OK (Section 9.3), so 0x18 is an unknown type here.
Variants§
RequestUpdate = 2
Subscribe = 3
SubscribeOk = 4
RequestError = 5
PublishNamespace = 6
RequestOk = 7
REQUEST_OK (0x07). Draft-23 Section 1.5: “This document uses the shorthand PUBLISH_OK, FETCH_OK, REQUEST_UPDATE_OK, TRACK_STATUS_OK, SUBSCRIBE_NAMESPACE_OK, SUBSCRIBE_TRACKS_OK and PUBLISH_NAMESPACE_OK to refer to a REQUEST_OK sent in response to the corresponding request type.”
Namespace = 8
PublishDone = 11
TrackStatus = 13
NamespaceDone = 14
PublishSkipped = 15
GoAway = 16
Fetch = 22
Publish = 29
PublishStateNotify = 34
SubscribeNamespace = 80
SubscribeTracks = 81
Setup = 12_032
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
impl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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