pub struct TransportFeedback<'a> { /* private fields */ }
Expand description
A parsed (Transport) Feedback packet as specified in RFC 4585.
Implementations§
Source§impl<'a> TransportFeedback<'a>
impl<'a> TransportFeedback<'a>
Sourcepub fn builder(fci: &'a dyn FciBuilder<'a>) -> TransportFeedbackBuilder<'a>
pub fn builder(fci: &'a dyn FciBuilder<'a>) -> TransportFeedbackBuilder<'a>
Constructs a TransportFeedbackBuilder
which refers to the provided FciBuilder
.
Use TransportFeedback::builder_owned
to return the TransportFeedbackBuilder
from a function.
Sourcepub fn builder_owned(
fci: impl FciBuilder<'static> + 'static,
) -> TransportFeedbackBuilder<'static>
pub fn builder_owned( fci: impl FciBuilder<'static> + 'static, ) -> TransportFeedbackBuilder<'static>
Constructs a TransportFeedbackBuilder
which owns the provided FciBuilder
.
This allows returning it from a function.
Warning: this causes the FciBuilder
to be heap-allocated.
Use TransportFeedback::builder
when possible.
Sourcepub fn padding(&self) -> Option<u8>
pub fn padding(&self) -> Option<u8>
The (optional) padding used by this TransportFeedback
packet
Sourcepub fn sender_ssrc(&self) -> u32
pub fn sender_ssrc(&self) -> u32
The SSRC of the sender sending this feedback
Sourcepub fn media_ssrc(&self) -> u32
pub fn media_ssrc(&self) -> u32
The SSRC of the media this packet refers to. May be unset (0) in some feedback types.
Sourcepub fn parse_fci<F: FciParser<'a>>(&self) -> Result<F, RtcpParseError>
pub fn parse_fci<F: FciParser<'a>>(&self) -> Result<F, RtcpParseError>
Parse the Feedback Control Information into a concrete type.
Will fail if:
- The FCI does not support transport feedback,
- the feedback type does not match the FCI
- The FCI implementation fails to parse the contained data
Trait Implementations§
Source§impl<'a> Clone for TransportFeedback<'a>
impl<'a> Clone for TransportFeedback<'a>
Source§fn clone(&self) -> TransportFeedback<'a>
fn clone(&self) -> TransportFeedback<'a>
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 moreSource§impl<'a> Debug for TransportFeedback<'a>
impl<'a> Debug for TransportFeedback<'a>
Source§impl<'a> From<TransportFeedback<'a>> for Packet<'a>
impl<'a> From<TransportFeedback<'a>> for Packet<'a>
Source§fn from(p: TransportFeedback<'a>) -> Self
fn from(p: TransportFeedback<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for TransportFeedback<'a>
impl<'a> PartialEq for TransportFeedback<'a>
Source§impl RtcpPacket for TransportFeedback<'_>
impl RtcpPacket for TransportFeedback<'_>
Source§const MIN_PACKET_LEN: usize = 12usize
const MIN_PACKET_LEN: usize = 12usize
The minimum size of a particular RTCP packet. A packet shorter than this value will
produce a parsing error.
Source§const PACKET_TYPE: u8 = 205u8
const PACKET_TYPE: u8 = 205u8
The RTCP type of the particular RTCP packet.
Source§impl<'a> RtcpPacketParser<'a> for TransportFeedback<'a>
impl<'a> RtcpPacketParser<'a> for TransportFeedback<'a>
Source§impl<'a> TryFrom<&'a Packet<'a>> for TransportFeedback<'a>
impl<'a> TryFrom<&'a Packet<'a>> for TransportFeedback<'a>
Source§impl<'a> TryFrom<&'a Unknown<'a>> for TransportFeedback<'a>
impl<'a> TryFrom<&'a Unknown<'a>> for TransportFeedback<'a>
Source§impl<'a> TryFrom<Packet<'a>> for TransportFeedback<'a>
impl<'a> TryFrom<Packet<'a>> for TransportFeedback<'a>
Source§impl<'a> TryFrom<Unknown<'a>> for TransportFeedback<'a>
impl<'a> TryFrom<Unknown<'a>> for TransportFeedback<'a>
impl<'a> Eq for TransportFeedback<'a>
impl<'a> StructuralPartialEq for TransportFeedback<'a>
Auto Trait Implementations§
impl<'a> Freeze for TransportFeedback<'a>
impl<'a> RefUnwindSafe for TransportFeedback<'a>
impl<'a> Send for TransportFeedback<'a>
impl<'a> Sync for TransportFeedback<'a>
impl<'a> Unpin for TransportFeedback<'a>
impl<'a> UnwindSafe for TransportFeedback<'a>
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