pub struct CodecInfo {
pub name: String,
pub srate: u32,
pub ch: u8,
}Expand description
The negotiated audio codec on a call (backend-neutral).
Fields§
§name: StringCodec name as the backend reports it, e.g. "opus", "PCMU".
srate: u32Codec sample rate in Hz.
ch: u8Channel count (1 = mono, 2 = stereo).
Trait Implementations§
impl Eq for CodecInfo
impl StructuralPartialEq for CodecInfo
Auto Trait Implementations§
impl Freeze for CodecInfo
impl RefUnwindSafe for CodecInfo
impl Send for CodecInfo
impl Sync for CodecInfo
impl Unpin for CodecInfo
impl UnsafeUnpin for CodecInfo
impl UnwindSafe for CodecInfo
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