Struct mpd::status::AudioFormat
[−]
[src]
pub struct AudioFormat { pub rate: u32, pub bits: u8, pub chans: u8, }
Audio playback format
Fields
rate: u32
sample rate, kbps
bits: u8
sample resolution in bits, can be 0 for floating point resolution
chans: u8
number of channels
Trait Implementations
impl Debug for AudioFormat
[src]
impl Copy for AudioFormat
[src]
impl Clone for AudioFormat
[src]
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for AudioFormat
[src]
fn eq(&self, __arg_0: &AudioFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AudioFormat) -> bool
This method tests for !=
.
impl Encodable for AudioFormat
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl FromStr for AudioFormat
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<AudioFormat, ParseError>
Parses a string s
to return a value of this type. Read more