Struct mpd::error::ServerError
[−]
[src]
pub struct ServerError { pub code: ErrorCode, pub pos: u16, pub command: String, pub detail: String, }
Server error
Fields
code: ErrorCode
server error code
pos: u16
command position in command list
command: String
command name, which caused the error
detail: String
detailed error description
Trait Implementations
impl Debug for ServerError
[src]
impl Clone for ServerError
[src]
fn clone(&self) -> ServerError
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 ServerError
[src]
fn eq(&self, __arg_0: &ServerError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ServerError) -> bool
This method tests for !=
.
impl Display for ServerError
[src]
impl StdError for ServerError
[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 FromStr for ServerError
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ServerError, ParseError>
Parses a string s
to return a value of this type. Read more