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 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 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 Copy for AudioFormat
[src]

impl Debug for AudioFormat
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for AudioFormat
[src]

type Err = ParseError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<AudioFormatParseError>

Parses a string s to return a value of this type. Read more