pub struct RtpHeaderExtensionParameters {
pub uri: RtpHeaderExtensionUri,
pub id: u16,
pub encrypt: bool,
}
Expand description
Defines a RTP header extension within the RTP parameters. The list of RTP
header extensions supported by mediasoup is defined in the supported_rtp_capabilities.rs
file.
mediasoup does not currently support encrypted RTP header extensions and no parameters are currently considered.
Fields§
§uri: RtpHeaderExtensionUri
The URI of the RTP header extension, as defined in RFC 5285.
id: u16
The numeric identifier that goes in the RTP packet. Must be unique.
encrypt: bool
If true, the value in the header is encrypted as per RFC 6904. Default false.
Trait Implementations§
Source§impl Clone for RtpHeaderExtensionParameters
impl Clone for RtpHeaderExtensionParameters
Source§fn clone(&self) -> RtpHeaderExtensionParameters
fn clone(&self) -> RtpHeaderExtensionParameters
Returns a copy 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 RtpHeaderExtensionParameters
impl Debug for RtpHeaderExtensionParameters
Source§impl<'de> Deserialize<'de> for RtpHeaderExtensionParameters
impl<'de> Deserialize<'de> for RtpHeaderExtensionParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for RtpHeaderExtensionParameters
impl Hash for RtpHeaderExtensionParameters
Source§impl Ord for RtpHeaderExtensionParameters
impl Ord for RtpHeaderExtensionParameters
Source§fn cmp(&self, other: &RtpHeaderExtensionParameters) -> Ordering
fn cmp(&self, other: &RtpHeaderExtensionParameters) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RtpHeaderExtensionParameters
impl PartialEq for RtpHeaderExtensionParameters
Source§fn eq(&self, other: &RtpHeaderExtensionParameters) -> bool
fn eq(&self, other: &RtpHeaderExtensionParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for RtpHeaderExtensionParameters
impl PartialOrd for RtpHeaderExtensionParameters
impl Eq for RtpHeaderExtensionParameters
impl StructuralPartialEq for RtpHeaderExtensionParameters
Auto Trait Implementations§
impl Freeze for RtpHeaderExtensionParameters
impl RefUnwindSafe for RtpHeaderExtensionParameters
impl Send for RtpHeaderExtensionParameters
impl Sync for RtpHeaderExtensionParameters
impl Unpin for RtpHeaderExtensionParameters
impl UnwindSafe for RtpHeaderExtensionParameters
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