Enum mpd::error::ErrorCode
[−]
[src]
pub enum ErrorCode { NotList, Argument, Password, Permission, UnknownCmd, NoExist, PlaylistMax, System, PlaylistLoad, UpdateAlready, PlayerSync, Exist, }
Server error codes, as defined in libmpdclient
Variants
NotList
not a list
Argument
bad command arguments
Password
invalid password
Permission
insufficient permissions
UnknownCmd
unknown command
NoExist
object doesn't exist
PlaylistMax
maximum playlist size exceeded
System
general system error
PlaylistLoad
error loading playlist
UpdateAlready
update database is already in progress
PlayerSync
player synchronization error
Exist
object already exists
Trait Implementations
impl Debug for ErrorCode
[src]
impl Clone for ErrorCode
[src]
fn clone(&self) -> ErrorCode
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 Copy for ErrorCode
[src]
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl PartialOrd for ErrorCode
[src]
fn partial_cmp(&self, __arg_0: &ErrorCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl FromStr for ErrorCode
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ErrorCode, ParseError>
Parses a string s
to return a value of this type. Read more
impl StdError for ErrorCode
[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