[][src]Enum rml_rtmp::messages::RtmpMessage

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,
    },
}

An enumeration of all types of RTMP messages that are supported

Variants

Unknown

This type of message is used when an RTMP message is encountered with a type id that we do not know about

Fields of Unknown

type_id: u8data: Bytes
Abort

Notifies the peer that if it is waiting for chunks to complete a message that it should discard the chunks it has already received.

Fields of Abort

stream_id: u32
Acknowledgement

An acknowledgement sent to confirm how many bytes that has been received since the prevoius acknowledgement.

Fields of Acknowledgement

sequence_number: u32
Amf0Command

A command being sent, encoded with amf0 values

Fields of Amf0Command

command_name: Stringtransaction_id: f64command_object: Amf0Valueadditional_arguments: Vec<Amf0Value>
Amf0Data

A message containing an array of data encoded as amf0 values

Fields of Amf0Data

values: Vec<Amf0Value>
AudioData

A message containing audio data

Fields of AudioData

data: Bytes
SetChunkSize

Tells the peer that the maximum chunk size for RTMP chunks it will be sending is changing to the specified size.

Fields of SetChunkSize

size: u32
SetPeerBandwidth

Indicates that the peer should limit its output bandwidth

Fields of SetPeerBandwidth

size: u32limit_type: PeerBandwidthLimitType
UserControl

Notifies the peer of an event, such as a stream being created or telling the peer how much of a buffer it should have.

Fields of UserControl

event_type: UserControlEventTypestream_id: Option<u32>buffer_length: Option<u32>timestamp: Option<RtmpTimestamp>
VideoData

A message containing video data

Fields of VideoData

data: Bytes
WindowAcknowledgement

Notifies the peer how many bytes should be received before sending an Acknowledgement message

Fields of WindowAcknowledgement

size: u32

Methods

impl RtmpMessage
[src]

pub fn into_message_payload(
    self,
    timestamp: RtmpTimestamp,
    message_stream_id: u32
) -> Result<MessagePayload, MessageSerializationError>
[src]

pub fn get_message_type_id(&self) -> u8
[src]

Trait Implementations

impl PartialEq<RtmpMessage> for RtmpMessage
[src]

impl Clone for RtmpMessage
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RtmpMessage
[src]

Auto Trait Implementations

impl Send for RtmpMessage

impl Sync for RtmpMessage

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self