pub enum ControlMessage {
Show 26 variants
ClientSetup(ClientSetup),
ServerSetup(ServerSetup),
GoAway(GoAway),
MaxRequestId(MaxRequestId),
RequestsBlocked(RequestsBlocked),
Subscribe(Subscribe),
SubscribeOk(SubscribeOk),
SubscribeError(SubscribeError),
SubscribeUpdate(SubscribeUpdate),
SubscribeDone(SubscribeDone),
Unsubscribe(Unsubscribe),
Announce(Announce),
AnnounceOk(AnnounceOk),
AnnounceError(AnnounceError),
AnnounceCancel(AnnounceCancel),
Unannounce(Unannounce),
SubscribeAnnounces(SubscribeAnnounces),
SubscribeAnnouncesOk(SubscribeAnnouncesOk),
SubscribeAnnouncesError(SubscribeAnnouncesError),
UnsubscribeAnnounces(UnsubscribeAnnounces),
TrackStatusRequest(TrackStatusRequest),
TrackStatus(TrackStatus),
Fetch(Fetch),
FetchOk(FetchOk),
FetchError(FetchError),
FetchCancel(FetchCancel),
}Expand description
A parsed MoQT control message (draft-11).
Variants§
ClientSetup(ClientSetup)
ClientSetup (type 0x20).
ServerSetup(ServerSetup)
ServerSetup (type 0x21).
GoAway(GoAway)
GoAway (type 0x10).
MaxRequestId(MaxRequestId)
MaxRequestId (type 0x15).
RequestsBlocked(RequestsBlocked)
RequestsBlocked (type 0x1A).
Subscribe(Subscribe)
Subscribe (type 0x03).
SubscribeOk(SubscribeOk)
SubscribeOk (type 0x04).
SubscribeError(SubscribeError)
SubscribeError (type 0x05).
SubscribeUpdate(SubscribeUpdate)
SubscribeUpdate (type 0x02).
SubscribeDone(SubscribeDone)
SubscribeDone (type 0x0B).
Unsubscribe(Unsubscribe)
Unsubscribe (type 0x0A).
Announce(Announce)
Announce (type 0x06).
AnnounceOk(AnnounceOk)
AnnounceOk (type 0x07).
AnnounceError(AnnounceError)
AnnounceError (type 0x08).
AnnounceCancel(AnnounceCancel)
AnnounceCancel (type 0x0C).
Unannounce(Unannounce)
Unannounce (type 0x09).
SubscribeAnnounces(SubscribeAnnounces)
SubscribeAnnounces (type 0x11).
SubscribeAnnouncesOk(SubscribeAnnouncesOk)
SubscribeAnnouncesOk (type 0x12).
SubscribeAnnouncesError(SubscribeAnnouncesError)
SubscribeAnnouncesError (type 0x13).
UnsubscribeAnnounces(UnsubscribeAnnounces)
UnsubscribeAnnounces (type 0x14).
TrackStatusRequest(TrackStatusRequest)
TrackStatusRequest (type 0x0D).
TrackStatus(TrackStatus)
TrackStatus (type 0x0E).
Fetch(Fetch)
Fetch (type 0x16).
FetchOk(FetchOk)
FetchOk (type 0x18).
FetchError(FetchError)
FetchError (type 0x19).
FetchCancel(FetchCancel)
FetchCancel (type 0x17).
Implementations§
Source§impl ControlMessage
impl ControlMessage
Sourcepub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
pub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
Encode this control message to bytes (including type ID and length prefix).
Draft-11 framing: type_id(vi) + payload_length(16) + payload.
Sourcepub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
pub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
Decode a control message from bytes (reads type ID and length prefix first).
Draft-11 framing: type_id(vi) + payload_length(16) + payload.
fn encode_payload(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
fn decode_payload( msg_type: MessageType, buf: &mut impl Buf, ) -> Result<Self, CodecError>
Sourcepub fn message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
Get the message type ID for this message.
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more