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

RTCP header.

Implementations

Create a new packet header.

Decode an RTCP header.

Encode the header.

Check if the padding bit is set.

Set the padding bit.

Get packet length in bytes.

Set the packet length in bytes.

Please note that the packet length must be a multiple of four and it must be from the range 4..=262_144.

Panics

The method panics if the constraints on the packet length mentioned above are not met.

Get RTCP packet type.

Set RTCP packet type.

Get number of items in the packet body.

Note: Only the lower 5 bits are actually used.

Set the number of items in the packet body.

Panics

The method panics if the number of items is greater than 31.

Get encoded size of the header.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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.