#[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,
PublishBlocked = 15,
GoAway = 16,
Fetch = 22,
FetchOk = 24,
Publish = 29,
SubscribeNamespace = 80,
SubscribeTracks = 81,
Setup = 12_032,
}Variants§
RequestUpdate = 2
Subscribe = 3
SubscribeOk = 4
RequestError = 5
PublishNamespace = 6
RequestOk = 7
REQUEST_OK (0x07). PUBLISH_OK is now an alias of this type.
Namespace = 8
PublishDone = 11
TrackStatus = 13
NamespaceDone = 14
PublishBlocked = 15
GoAway = 16
Fetch = 22
FetchOk = 24
Publish = 29
SubscribeNamespace = 80
SUBSCRIBE_NAMESPACE (renumbered to 0x50 in draft-18).
SubscribeTracks = 81
SUBSCRIBE_TRACKS (new message in draft-18).
Setup = 12_032
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageType
impl Debug for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MessageType
impl Eq 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