pub enum ControlMessage {
Show 25 variants
ClientSetup(ClientSetup),
ServerSetup(ServerSetup),
GoAway(GoAway),
MaxSubscribeId(MaxSubscribeId),
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 decoded MoQT control message (draft-07).
Variants§
ClientSetup(ClientSetup)
ClientSetup (type 0x40).
ServerSetup(ServerSetup)
ServerSetup (type 0x41).
GoAway(GoAway)
GoAway (type 0x10).
MaxSubscribeId(MaxSubscribeId)
MaxSubscribeId (type 0x15).
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 message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
Return the message type for this control message.
Sourcepub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
pub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
Encode this control message (type ID + length prefix + 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.
fn encode_payload(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
fn decode_payload( msg_type: MessageType, buf: &mut impl Buf, ) -> Result<Self, CodecError>
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