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

Unknown

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

Show fields

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.

Show fields

Fields of Abort

stream_id: u32
Acknowledgement

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

Show fields

Fields of Acknowledgement

sequence_number: u32
Amf0Command

A command being sent, encoded with amf0 values

Show fields

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

Show fields

Fields of Amf0Data

values: Vec<Amf0Value>
AudioData

A message containing audio data

Show fields

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.

Show fields

Fields of SetChunkSize

size: u32
SetPeerBandwidth

Indicates that the peer should limit its output bandwidth

Show fields

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.

Show fields

Fields of UserControl

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

A message containing video data

Show fields

Fields of VideoData

data: Bytes
WindowAcknowledgement

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

Show fields

Fields of WindowAcknowledgement

size: u32

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.