#[non_exhaustive]pub struct CodecImpl {
pub name: String,
pub payload_type: Option<u8>,
pub clock_rate: Option<u32>,
pub ptime: Option<u32>,
pub bitrate: Option<u32>,
pub channels: Option<u8>,
}Expand description
A codec implementation the engine reports it is running, as distinct from a
CodecOffer read off the wire.
Every field but the name is optional because each line that produces one
carries a different subset — an engine line naming no payload type must not
be forced to claim one, which is what sharing CodecOffer did.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§payload_type: Option<u8>§clock_rate: Option<u32>§ptime: Option<u32>§bitrate: Option<u32>§channels: Option<u8>Trait Implementations§
impl Eq for CodecImpl
impl StructuralPartialEq for CodecImpl
Auto Trait Implementations§
impl Freeze for CodecImpl
impl RefUnwindSafe for CodecImpl
impl Send for CodecImpl
impl Sync for CodecImpl
impl Unpin for CodecImpl
impl UnsafeUnpin for CodecImpl
impl UnwindSafe for CodecImpl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.