#[repr(u8)]pub enum ErrorCode {
NotList,
Argument,
Password,
Permission,
UnknownCmd,
NoExist,
PlaylistMax,
System,
PlaylistLoad,
UpdateAlready,
PlayerSync,
Exist,
}
Expand description
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§
source§impl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · 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()
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
source§impl PartialOrd<ErrorCode> for ErrorCode
impl PartialOrd<ErrorCode> for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more