pub struct RtpHeader { /* private fields */ }
Expand description

RTP header.

Implementations

Create a new RTP header.

Decode an RTP header from given data.

Encode the header.

Check if the RTP packet contains any padding.

Set the padding bit.

Check if there is an RTP header extension.

Set the extension bit.

Check if the RTP marker bit is set.

Set the marker bit.

Get RTP payload type.

Note: Only the lower 7 bits are used.

Set the payload type.

Panics

The method panics if the payload type is greater than 127.

Get RTP sequence number.

Set the sequence number.

Get RTP timestamp.

Set RTP timestamp.

Get the SSRC identifier.

Set the SSRC identifier.

Get a list of CSRC identifiers.

Set the CSRC identifiers.

Panics

The method panics if the number of identifiers is greater than 255.

Get raw size of the header (i.e. byte length of the encoded header).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.