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
BadVersion
invalid version format (should be x.y.z)
NotAck
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)
BadPair
invalid pair
BadCode
invalid error code in ACK
response
BadPos
invalid command position in ACK
response
NoCodePos
missing command position and/or error code in ACK
response
NoMessage
missing error message in ACK
response
NoRate
missing bitrate in audio format field
NoBits
missing bits in audio format field
NoChans
missing 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.