#[repr(u64)]pub enum MessageType {
Show 26 variants
SubscribeUpdate = 2,
Subscribe = 3,
SubscribeOk = 4,
SubscribeError = 5,
Announce = 6,
AnnounceOk = 7,
AnnounceError = 8,
Unannounce = 9,
Unsubscribe = 10,
SubscribeDone = 11,
AnnounceCancel = 12,
TrackStatusRequest = 13,
TrackStatus = 14,
GoAway = 16,
SubscribeAnnounces = 17,
SubscribeAnnouncesOk = 18,
SubscribeAnnouncesError = 19,
UnsubscribeAnnounces = 20,
MaxRequestId = 21,
Fetch = 22,
FetchCancel = 23,
FetchOk = 24,
FetchError = 25,
RequestsBlocked = 26,
ClientSetup = 32,
ServerSetup = 33,
}Expand description
Control message type IDs (draft-11).
Variants§
SubscribeUpdate = 2
SubscribeUpdate (type 0x02).
Subscribe = 3
Subscribe (type 0x03).
SubscribeOk = 4
SubscribeOk (type 0x04).
SubscribeError = 5
SubscribeError (type 0x05).
Announce = 6
Announce (type 0x06).
AnnounceOk = 7
AnnounceOk (type 0x07).
AnnounceError = 8
AnnounceError (type 0x08).
Unannounce = 9
Unannounce (type 0x09).
Unsubscribe = 10
Unsubscribe (type 0x0A).
SubscribeDone = 11
SubscribeDone (type 0x0B).
AnnounceCancel = 12
AnnounceCancel (type 0x0C).
TrackStatusRequest = 13
TrackStatusRequest (type 0x0D).
TrackStatus = 14
TrackStatus (type 0x0E).
GoAway = 16
GoAway (type 0x10).
SubscribeAnnounces = 17
SubscribeAnnounces (type 0x11).
SubscribeAnnouncesOk = 18
SubscribeAnnouncesOk (type 0x12).
SubscribeAnnouncesError = 19
SubscribeAnnouncesError (type 0x13).
UnsubscribeAnnounces = 20
UnsubscribeAnnounces (type 0x14).
MaxRequestId = 21
MaxRequestId (type 0x15).
Fetch = 22
Fetch (type 0x16).
FetchCancel = 23
FetchCancel (type 0x17).
FetchOk = 24
FetchOk (type 0x18).
FetchError = 25
FetchError (type 0x19).
RequestsBlocked = 26
RequestsBlocked (type 0x1A).
ClientSetup = 32
ClientSetup (type 0x20).
ServerSetup = 33
ServerSetup (type 0x21).
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 · 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
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