Struct mpd::error::ServerError
source · pub struct ServerError {
pub code: ErrorCode,
pub pos: u16,
pub command: String,
pub detail: String,
}
Expand description
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§
source§impl Clone for ServerError
impl Clone for ServerError
source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerError
impl Debug for ServerError
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
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 From<ServerError> for Error
impl From<ServerError> for Error
source§fn from(e: ServerError) -> Error
fn from(e: ServerError) -> Error
Converts to this type from the input type.
source§impl FromStr for ServerError
impl FromStr for ServerError
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ServerError, ParseError>
fn from_str(s: &str) -> Result<ServerError, ParseError>
Parses a string
s
to return a value of this type. Read moresource§impl PartialEq<ServerError> for ServerError
impl PartialEq<ServerError> for ServerError
source§fn eq(&self, other: &ServerError) -> bool
fn eq(&self, other: &ServerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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