pub struct RTPHeaderExtension {
pub uri: String,
pub id: u16,
}Expand description
RTP header extension as negotiated via SDP (RFC 5285).
Represents a header extension that can be used to add metadata to RTP packets, such as audio levels, video orientation, or custom application data.
§Common Extension URIs
| URI | Description |
|---|---|
urn:ietf:params:rtp-hdrext:ssrc-audio-level | Audio level indication |
urn:ietf:params:rtp-hdrext:toffset | Transmission time offset |
http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time | Absolute send time |
http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 | TWCC sequence number |
Fields§
§uri: StringURI identifying the extension type (e.g., “urn:ietf:params:rtp-hdrext:ssrc-audio-level”)
id: u16Local identifier (1-14 for one-byte, 1-255 for two-byte) used in RTP packets to reference this extension
Trait Implementations§
Source§impl Clone for RTPHeaderExtension
impl Clone for RTPHeaderExtension
Source§fn clone(&self) -> RTPHeaderExtension
fn clone(&self) -> RTPHeaderExtension
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 Debug for RTPHeaderExtension
impl Debug for RTPHeaderExtension
Source§impl Default for RTPHeaderExtension
impl Default for RTPHeaderExtension
Source§fn default() -> RTPHeaderExtension
fn default() -> RTPHeaderExtension
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RTPHeaderExtension
impl RefUnwindSafe for RTPHeaderExtension
impl Send for RTPHeaderExtension
impl Sync for RTPHeaderExtension
impl Unpin for RTPHeaderExtension
impl UnwindSafe for RTPHeaderExtension
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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