Enum mpd::error::Error [] [src]

pub enum Error {
    Io(IoError),
    Parse(ParseError),
    Proto(ProtoError),
    Server(ServerError),
}

Main error type, describing all possible error classes for the crate

Variants

Io(IoError)

IO errors (low-level network communication failures)

Parse(ParseError)

parsing errors (unknown data came from server)

Proto(ProtoError)

protocol errors (e.g. missing required fields in server response, no handshake message etc.)

Server(ServerError)

server errors (a.k.a. ACK responses from server)

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl StdError for Error
[src]

fn cause(&self) -> Option<&StdError>

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

fn description(&self) -> &str

A short description of the error. Read more

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl From<IoError> for Error
[src]

fn from(e: IoError) -> Error

Performs the conversion.

impl From<ParseError> for Error
[src]

fn from(e: ParseError) -> Error

Performs the conversion.

impl From<ProtoError> for Error
[src]

fn from(e: ProtoError) -> Error

Performs the conversion.

impl From<ParseIntError> for Error
[src]

fn from(e: ParseIntError) -> Error

Performs the conversion.

impl From<ParseFloatError> for Error
[src]

fn from(e: ParseFloatError) -> Error

Performs the conversion.

impl From<TimeParseError> for Error
[src]

fn from(e: TimeParseError) -> Error

Performs the conversion.

impl From<ServerError> for Error
[src]

fn from(e: ServerError) -> Error

Performs the conversion.