Enum mpd::error::ParseError [] [src]

pub enum ParseError {
    BadInteger(ParseIntError),
    BadFloat(ParseFloatError),
    BadValue(String),
    BadTime(TimeParseError),
    BadVersion,
    NotAck,
    BadPair,
    BadCode,
    BadPos,
    NoCodePos,
    NoMessage,
    NoRate,
    NoBits,
    NoChans,
    BadRate(ParseIntError),
    BadBits(ParseIntError),
    BadChans(ParseIntError),
    BadState(String),
    BadErrorCode(usize),
}

Parsing error kinds

Variants

invalid integer

invalid float

some other invalid value

date/time parsing error

invalid version format (should be x.y.z)

the response is not an ACK (not an error) (this is not actually an error, just a marker to try to parse the response as some other type, like a pair)

invalid pair

invalid error code in ACK response

invalid command position in ACK response

missing command position and/or error code in ACK response

missing error message in ACK response

missing bitrate in audio format field

missing bits in audio format field

missing channels in audio format field

invalid bitrate in audio format field

invalid bits in audio format field

invalid channels in audio format field

unknown state in state status field

unknown error code in ACK response

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter.

impl Clone for ParseError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ParseError
[src]

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

This method tests for !=.

impl Display for ParseError
[src]

Formats the value using the given formatter.

impl StdError for ParseError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<TimeParseError> for ParseError
[src]

Performs the conversion.

impl From<ParseIntError> for ParseError
[src]

Performs the conversion.

impl From<ParseFloatError> for ParseError
[src]

Performs the conversion.