pub struct RtpCodecParametersParameters(/* private fields */);
Expand description
Codec specific parameters. Some parameters (such as packetization-mode
and profile-level-id
in H264 or profile-id
in VP9) are critical for codec matching.
Implementations§
Source§impl RtpCodecParametersParameters
impl RtpCodecParametersParameters
Sourcepub fn insert<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn insert<K, V>(&mut self, key: K, value: V) -> &mut Self
Insert another parameter into collection.
Sourcepub fn iter(
&self,
) -> Iter<'_, Cow<'static, str>, RtpCodecParametersParametersValue>
pub fn iter( &self, ) -> Iter<'_, Cow<'static, str>, RtpCodecParametersParametersValue>
Iterate over parameters in collection.
Sourcepub fn get(&self, key: &str) -> Option<&RtpCodecParametersParametersValue>
pub fn get(&self, key: &str) -> Option<&RtpCodecParametersParametersValue>
Get specific parameter from collection.
Trait Implementations§
Source§impl Clone for RtpCodecParametersParameters
impl Clone for RtpCodecParametersParameters
Source§fn clone(&self) -> RtpCodecParametersParameters
fn clone(&self) -> RtpCodecParametersParameters
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 RtpCodecParametersParameters
impl Debug for RtpCodecParametersParameters
Source§impl Default for RtpCodecParametersParameters
impl Default for RtpCodecParametersParameters
Source§fn default() -> RtpCodecParametersParameters
fn default() -> RtpCodecParametersParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RtpCodecParametersParameters
impl<'de> Deserialize<'de> for RtpCodecParametersParameters
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<K> Extend<(K, RtpCodecParametersParametersValue)> for RtpCodecParametersParameters
impl<K> Extend<(K, RtpCodecParametersParametersValue)> for RtpCodecParametersParameters
Source§fn extend<T: IntoIterator<Item = (K, RtpCodecParametersParametersValue)>>(
&mut self,
iter: T,
)
fn extend<T: IntoIterator<Item = (K, RtpCodecParametersParametersValue)>>( &mut self, iter: T, )
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<K, const N: usize> From<[(K, RtpCodecParametersParametersValue); N]> for RtpCodecParametersParameters
impl<K, const N: usize> From<[(K, RtpCodecParametersParametersValue); N]> for RtpCodecParametersParameters
Source§fn from(array: [(K, RtpCodecParametersParametersValue); N]) -> Self
fn from(array: [(K, RtpCodecParametersParametersValue); N]) -> Self
Converts to this type from the input type.
Source§impl<K> FromIterator<(K, RtpCodecParametersParametersValue)> for RtpCodecParametersParameters
impl<K> FromIterator<(K, RtpCodecParametersParametersValue)> for RtpCodecParametersParameters
Source§fn from_iter<T: IntoIterator<Item = (K, RtpCodecParametersParametersValue)>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = (K, RtpCodecParametersParametersValue)>>( iter: T, ) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for RtpCodecParametersParameters
impl Hash for RtpCodecParametersParameters
Source§impl IntoIterator for RtpCodecParametersParameters
impl IntoIterator for RtpCodecParametersParameters
Source§impl Ord for RtpCodecParametersParameters
impl Ord for RtpCodecParametersParameters
Source§fn cmp(&self, other: &RtpCodecParametersParameters) -> Ordering
fn cmp(&self, other: &RtpCodecParametersParameters) -> 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 RtpCodecParametersParameters
impl PartialEq for RtpCodecParametersParameters
Source§fn eq(&self, other: &RtpCodecParametersParameters) -> bool
fn eq(&self, other: &RtpCodecParametersParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for RtpCodecParametersParameters
impl PartialOrd for RtpCodecParametersParameters
impl Eq for RtpCodecParametersParameters
impl StructuralPartialEq for RtpCodecParametersParameters
Auto Trait Implementations§
impl Freeze for RtpCodecParametersParameters
impl RefUnwindSafe for RtpCodecParametersParameters
impl Send for RtpCodecParametersParameters
impl Sync for RtpCodecParametersParameters
impl Unpin for RtpCodecParametersParameters
impl UnwindSafe for RtpCodecParametersParameters
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