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

OK was expected, but it was missing

a data pair was expected

invalid handshake banner received

expected some field, but it was missing

Trait Implementations

impl Debug for ProtoError
[src]

Formats the value using the given formatter.

impl Clone for ProtoError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl StdError for ProtoError
[src]

A short description of the error. Read more

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