pub struct RtcpFb {
pub payload_type: RtcpFbPayloadType,
pub id: String,
pub param: Option<String>,
pub rest: Option<String>,
}Expand description
a=rtcp-fb:<pt> <id> [<param> [<rest>]] (RFC 4585 section 4.2).
rtcp-fb-syntax = "a=rtcp-fb:" rtcp-fb-pt SP rtcp-fb-val CRLF
rtcp-fb-pt = "*" / fmt
rtcp-fb-val = "ack" rtcp-fb-ack-param / "nack" rtcp-fb-nack-param
/ "trr-int" SP 1*DIGIT / rtcp-fb-id rtcp-fb-param
rtcp-fb-id = 1*(alpha-numeric / "-" / "_")
rtcp-fb-param = SP "app" [SP byte-string] / SP token [SP byte-string] / ; emptyRFC 5104 section 7.1 adds ccm, whose parameter is required. Every feedback type has
this shape, so the line is kept as its three parts and RtcpFb::kind names the ones
the specifications define.
Fields§
§payload_type: RtcpFbPayloadTypeThe formats the line applies to.
id: StringThe feedback type: ack, nack, trr-int, ccm, goog-remb, transport-cc, …
param: Option<String>The first parameter, a token: pli, fir, app, … For trr-int, the interval.
rest: Option<String>What follows the first parameter.
Implementations§
Source§impl RtcpFb
impl RtcpFb
Sourcepub fn feedback(&self) -> String
pub fn feedback(&self) -> String
The feedback type and its parameters as one string, as it follows the payload type:
nack pli, goog-remb, ccm fir.
Sourcepub fn applies_to(&self, pt: u8) -> bool
pub fn applies_to(&self, pt: u8) -> bool
Whether the line applies to payload type pt.
Sourcepub fn kind(&self) -> RtcpFbKind
pub fn kind(&self) -> RtcpFbKind
Which feedback message this is.
Trait Implementations§
impl Eq for RtcpFb
impl StructuralPartialEq for RtcpFb
Auto Trait Implementations§
impl Forget for RtcpFb
impl Freeze for RtcpFb
impl Move for RtcpFb
impl RefUnwindSafe for RtcpFb
impl Send for RtcpFbwhere
RawVecInner: Send,
impl Sync for RtcpFbwhere
RawVecInner: Sync,
impl Unpin for RtcpFb
impl UnsafeUnpin for RtcpFb
impl UnwindSafe for RtcpFbwhere
RawVecInner: UnwindSafe,
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