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

Sender/receiver report block.

Implementations

Create a new report block.

Decode a report block from given data.

Encode the report block.

Get SSRC.

Set SSRC.

Get fractional loss as 0.8 fixed point number.

Set fractional loss as 0.8 fixed point number.

Get cumulative packet loss (the precision is only up to 24 bits).

Set cumulative packet loss (the precision is only up to 24 bits).

Get extended highest sequence number.

Set the extended sequence number.

Get jitter.

Set the jitter.

Get NTP timestamp of the last sender report (after truncating to the middle 32 bits).

The returned timestamp is a 32.32 fixed point number.

Set NTP timestamp of the last sender report.

The timestamp is expected to be a 32.32 fixed point number and it will be truncated to the middle 32 bits.

Get delay since the last sender report.

Set delay since the last sender report.

Get size of the encoded report block.

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.