Enum mpd_client::client::CommandError
source · pub enum CommandError {
ConnectionClosed,
Protocol(MpdProtocolError),
ErrorResponse {
error: Error,
succesful_frames: Vec<Frame>,
},
InvalidTypedResponse(TypedResponseError),
}Expand description
Errors which can occur when issuing a command.
Variants§
ConnectionClosed
The connection to MPD was closed cleanly
Protocol(MpdProtocolError)
An underlying protocol error occurred, including IO errors
ErrorResponse
Fields
Command returned an error
InvalidTypedResponse(TypedResponseError)
A typed command failed to convert its response.
Trait Implementations§
source§impl Debug for CommandError
impl Debug for CommandError
source§impl Display for CommandError
impl Display for CommandError
source§impl Error for CommandError
impl Error for CommandError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()