pub struct SupportedFormat {
pub codec: String,
pub channels: u8,
pub sample_rate: u32,
pub bit_depth: u8,
}Expand description
One audio format a player advertises in PlayerSupport::supported_formats.
Fields§
§codec: StringCodec identifier: opus, flac or pcm.
channels: u8Number of channels.
sample_rate: u32Sample rate in hertz.
bit_depth: u8Bit depth; meaningful for pcm and flac only.
Trait Implementations§
Source§impl Clone for SupportedFormat
impl Clone for SupportedFormat
Source§impl Debug for SupportedFormat
impl Debug for SupportedFormat
Source§impl<'de> Deserialize<'de> for SupportedFormat
impl<'de> Deserialize<'de> for SupportedFormat
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 SupportedFormat
Source§impl PartialEq for SupportedFormat
impl PartialEq for SupportedFormat
Source§impl Serialize for SupportedFormat
impl Serialize for SupportedFormat
impl StructuralPartialEq for SupportedFormat
Auto Trait Implementations§
impl Forget for SupportedFormat
impl Freeze for SupportedFormat
impl Move for SupportedFormat
impl RefUnwindSafe for SupportedFormat
impl Send for SupportedFormat
impl Sync for SupportedFormat
impl Unpin for SupportedFormat
impl UnsafeUnpin for SupportedFormat
impl UnwindSafe for SupportedFormat
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