pub struct Codec {
pub mime_type: String,
pub clock_rate: u32,
pub channels: Option<u16>,
pub parameters: HashMap<String, String>,
}
Expand description
Representation of an RTCRtpCodec.
Provides information about codec objects.
Fields§
§mime_type: String
MIME type/subtype
of this Codec
.
Valid values are listed in IANA-RTP-2.
clock_rate: u32
Clock rate expressed in Hz (hertz) of this Codec
.
channels: Option<u16>
Maximum number of channels (mono=1
, stereo=2
), if any.
parameters: HashMap<String, String>
Codec
-specific parameters that must be signaled to the remote party.
Corresponds to a=fmtp
parameters in SDP.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Codec
impl<'de> Deserialize<'de> for Codec
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
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnwindSafe for Codec
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