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
BadInteger(ParseIntError)invalid integer
BadFloat(ParseFloatError)invalid float
BadValue(String)some other invalid value
BadTime(TimeParseError)date/time parsing error
BadVersioninvalid version format (should be x.y.z)
NotAckthe 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)
BadPairinvalid pair
BadCodeinvalid error code in ACK response
BadPosinvalid command position in ACK response
NoCodePosmissing command position and/or error code in ACK response
NoMessagemissing error message in ACK response
NoRatemissing bitrate in audio format field
NoBitsmissing bits in audio format field
NoChansmissing channels in audio format field
BadRate(ParseIntError)invalid bitrate in audio format field
BadBits(ParseIntError)invalid bits in audio format field
BadChans(ParseIntError)invalid channels in audio format field
BadState(String)unknown state in state status field
BadErrorCode(usize)unknown error code in ACK response
Trait Implementations
impl Debug for ParseError[src]
impl Clone for ParseError[src]
fn clone(&self) -> ParseError
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 ParseError[src]
fn eq(&self, __arg_0: &ParseError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
This method tests for !=.
impl Display for ParseError[src]
impl StdError for ParseError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more
impl From<TimeParseError> for ParseError[src]
fn from(e: TimeParseError) -> ParseError
Performs the conversion.
impl From<ParseIntError> for ParseError[src]
fn from(e: ParseIntError) -> ParseError
Performs the conversion.
impl From<ParseFloatError> for ParseError[src]
fn from(e: ParseFloatError) -> ParseError
Performs the conversion.