pub enum Codec {
Pcm,
Flac,
Opus,
Other(String),
}Expand description
Audio codec of a stream.
The protocol names three codecs; Codec::Other preserves one this revision does not know, so
a passthrough sink can still forward it. A sink that decodes must reject the values it cannot
handle instead of guessing.
Variants§
Pcm
Raw samples, layout given by AudioFormat.
Flac
FLAC.
Opus
Opus.
Other(String)
A codec identifier this revision does not name, unchanged from the wire.
Implementations§
Trait Implementations§
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Forget for Codec
impl Freeze for Codec
impl Move 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