Struct rtcp::header::Header[][src]

pub struct Header {
    pub padding: bool,
    pub count: u8,
    pub packet_type: PacketType,
    pub length: u16,
}
Expand description

A Header is the common header shared by all RTCP packets

Fields

padding: bool

If the padding bit is set, this individual RTCP packet contains some additional padding octets at the end which are not part of the control information but are included in the length field.

count: u8

The number of reception reports, sources contained or FMT in this packet (depending on the Type)

packet_type: PacketType

The RTCP packet type for this packet

length: u16

The length of this RTCP packet in 32-bit words minus one, including the header and any padding.

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

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

Marshal encodes the Header in binary

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

This method tests for !=.

Unmarshal decodes the Header from binary

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.

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.