Struct msf_rtp::rtcp::ReceiverReport
source · [−]pub struct ReceiverReport { /* private fields */ }
Expand description
Receiver report.
Implementations
sourceimpl 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 where
T: Into<Vec<ReportBlock>>,
pub fn with_report_blocks<T>(self, blocks: T) -> Self where
T: Into<Vec<ReportBlock>>,
Set the report blocks.
Panics
The method will panic if the number of report blocks is greater than 31.
Trait Implementations
sourceimpl Clone for ReceiverReport
impl Clone for ReceiverReport
sourcefn clone(&self) -> ReceiverReport
fn clone(&self) -> ReceiverReport
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReceiverReport
impl Send for ReceiverReport
impl Sync for ReceiverReport
impl Unpin for ReceiverReport
impl UnwindSafe for ReceiverReport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more