Enum rml_rtmp::messages::RtmpMessage [−][src]
pub enum RtmpMessage { Unknown { type_id: u8, data: Bytes, }, Abort { stream_id: u32, }, Acknowledgement { sequence_number: u32, }, Amf0Command { command_name: String, transaction_id: f64, command_object: Amf0Value, additional_arguments: Vec<Amf0Value>, }, Amf0Data { values: Vec<Amf0Value>, }, AudioData { data: Bytes, }, SetChunkSize { size: u32, }, SetPeerBandwidth { size: u32, limit_type: PeerBandwidthLimitType, }, UserControl { event_type: UserControlEventType, stream_id: Option<u32>, buffer_length: Option<u32>, timestamp: Option<RtmpTimestamp>, }, VideoData { data: Bytes, }, WindowAcknowledgement { size: u32, }, }
Expand description
An enumeration of all types of RTMP messages that are supported
Variants
This type of message is used when an RTMP message is encountered with a type id that we do not know about
Notifies the peer that if it is waiting for chunks to complete a message that it should discard the chunks it has already received.
Show fields
Fields of Abort
stream_id: u32
An acknowledgement sent to confirm how many bytes that has been received since the prevoius acknowledgement.
Show fields
Fields of Acknowledgement
sequence_number: u32
A command being sent, encoded with amf0 values
Show fields
A message containing an array of data encoded as amf0 values
A message containing audio data
Show fields
Fields of AudioData
data: Bytes
Tells the peer that the maximum chunk size for RTMP chunks it will be sending is changing to the specified size.
Show fields
Fields of SetChunkSize
size: u32
Indicates that the peer should limit its output bandwidth
Show fields
Fields of SetPeerBandwidth
size: u32
limit_type: PeerBandwidthLimitType
Notifies the peer of an event, such as a stream being created or telling the peer how much of a buffer it should have.
Show fields
Fields of UserControl
event_type: UserControlEventType
stream_id: Option<u32>
buffer_length: Option<u32>
timestamp: Option<RtmpTimestamp>
A message containing video data
Show fields
Fields of VideoData
data: Bytes
Notifies the peer how many bytes should be received before sending an Acknowledgement
message
Show fields
Fields of WindowAcknowledgement
size: u32
Implementations
pub fn into_message_payload(
self,
timestamp: RtmpTimestamp,
message_stream_id: u32
) -> Result<MessagePayload, MessageSerializationError>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RtmpMessage
impl Send for RtmpMessage
impl Sync for RtmpMessage
impl Unpin for RtmpMessage
impl UnwindSafe for RtmpMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V