#[non_exhaustive]pub enum MessageTypeId {
Show 14 variants
SetChunkSize,
Abort,
Acknowledgement,
UserControl,
WindowAckSize,
SetPeerBandwidth,
Audio,
Video,
DataAmf3,
CommandAmf3,
DataAmf0,
CommandAmf0,
Aggregate,
Other(u8),
}Expand description
RTMP message type id (§6, RTMP Message Types §7.1; the Message Type ID
field of the chunk message header, §5.3.1). Ids 1..=6 are
Chunk-Stream-layer protocol control (§5.4); the rest are streaming-layer
message types (§6/§7.1). A value §7.1 does not define is kept in
MessageTypeId::Other, since a peer may send one and the payload is
still carried.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SetChunkSize
1 — Set Chunk Size (§5.4.1).
Abort
2 — Abort Message (§5.4.2).
Acknowledgement
3 — Acknowledgement (§5.4.3).
UserControl
4 — User Control Message (§6.2/§7.1.7).
WindowAckSize
5 — Window Acknowledgement Size (§5.4.4).
SetPeerBandwidth
6 — Set Peer Bandwidth (§5.4.5).
Audio
8 — Audio Message (§7.1.4).
Video
9 — Video Message (§7.1.5).
DataAmf3
15 — Data Message, AMF3-encoded (§7.1.2).
CommandAmf3
17 — Command Message, AMF3-encoded (§7.1.1).
DataAmf0
18 — Data Message, AMF0-encoded (§7.1.2).
CommandAmf0
20 — Command Message, AMF0-encoded (§7.1.1).
Aggregate
22 — Aggregate Message (§7.1.6).
Other(u8)
A message type id §7.1 does not define.
Implementations§
Trait Implementations§
Source§impl Clone for MessageTypeId
impl Clone for MessageTypeId
impl Copy for MessageTypeId
Source§impl Debug for MessageTypeId
impl Debug for MessageTypeId
Source§impl<'de> Deserialize<'de> for MessageTypeId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MessageTypeId
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for MessageTypeId
impl Display for MessageTypeId
impl Eq for MessageTypeId
Source§impl From<MessageTypeId> for u8
impl From<MessageTypeId> for u8
Source§fn from(id: MessageTypeId) -> Self
fn from(id: MessageTypeId) -> Self
Source§impl From<u8> for MessageTypeId
impl From<u8> for MessageTypeId
Source§impl Hash for MessageTypeId
impl Hash for MessageTypeId
Source§impl PartialEq for MessageTypeId
impl PartialEq for MessageTypeId
Source§impl Serialize for MessageTypeId
Available on crate feature serde only.
impl Serialize for MessageTypeId
serde only.