Enum mpd::error::ProtoError [] [src]

pub enum ProtoError {
    NotOk,
    NotPair,
    BadBanner,
    NoField(&'static str),
}

Protocol errors

They usually occur when server violate expected command response format, like missing fields in answer to some command, missing closing OK line after data stream etc.

Variants

NotOk

OK was expected, but it was missing

NotPair

a data pair was expected

BadBanner

invalid handshake banner received

NoField(&'static str)

expected some field, but it was missing

Trait Implementations

impl PartialEq for ProtoError
[src]

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

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

fn ne(&self, __arg_0: &ProtoError) -> bool

This method tests for !=.

impl Clone for ProtoError
[src]

fn clone(&self) -> ProtoError

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 Debug for ProtoError
[src]

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

Formats the value using the given formatter.

impl Display for ProtoError
[src]

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

Formats the value using the given formatter.

impl StdError for ProtoError
[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