pub struct ReceiverReport { /* private fields */ }Expand description
Receiver report.
Implementations§
Source§impl ReceiverReport
impl ReceiverReport
Sourcepub fn decode(packet: &RtcpPacket) -> Result<Self, InvalidInput>
pub fn decode(packet: &RtcpPacket) -> Result<Self, InvalidInput>
Decode receiver report.
Sourcepub fn encode(&self) -> RtcpPacket
pub fn encode(&self) -> RtcpPacket
Encode the sender report.
Sourcepub fn report_blocks(&self) -> &[ReportBlock]
pub fn report_blocks(&self) -> &[ReportBlock]
Get report blocks.
Sourcepub fn with_report_blocks<T>(self, blocks: T) -> Self
pub fn with_report_blocks<T>(self, blocks: T) -> Self
Set the report blocks.
§Panics
The method will panic if the number of report blocks is greater than 31.
Trait Implementations§
Source§impl Clone for ReceiverReport
impl Clone for ReceiverReport
Source§fn clone(&self) -> ReceiverReport
fn clone(&self) -> ReceiverReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReceiverReport
impl RefUnwindSafe for ReceiverReport
impl Send for ReceiverReport
impl Sync for ReceiverReport
impl Unpin for ReceiverReport
impl UnwindSafe for ReceiverReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more