pub struct Codec {
pub format: Format,
pub channels: usize,
pub order: ByteOrder,
pub suppress_subnormals: bool,
}Expand description
Everything a codec call needs to know about the connection.
Fields§
§format: FormatThe format of every channel in the stream.
channels: usizeThe number of channels in one sample.
order: ByteOrderThe byte order that the connection selected.
suppress_subnormals: boolTrue when the reader clears subnormal values. SPEC.md 7.4.
Implementations§
Source§impl Codec
impl Codec
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin 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