Enum mpd::status::State [] [src]

pub enum State {
    Stop,
    Play,
    Pause,
}

Playback state

Variants

Stop

player stopped

Play

player is playing

Pause

player paused

Trait Implementations

impl Decodable for State
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<State, __D::Error>

impl Encodable for State
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl PartialEq for State
[src]

fn eq(&self, __arg_0: &State) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Clone for State
[src]

fn clone(&self) -> State

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 State
[src]

impl Debug for State
[src]

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

Formats the value using the given formatter.

impl Default for State
[src]

fn default() -> State

Returns the "default value" for a type. Read more

impl FromStr for State
[src]

type Err = ParseError

The associated error which can be returned from parsing.

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

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