Enum mpd::error::ProtoError
source · pub enum ProtoError {
NotOk,
NotPair,
BadBanner,
NoField(&'static str),
BadSticker,
}
Expand description
Protocol errors
They usually occur when server violate expected command response format,
like missing fields in answer to some command, missing closing OK
line after data stream etc.
Variants§
NotOk
OK
was expected, but it was missing
NotPair
a data pair was expected
BadBanner
invalid handshake banner received
NoField(&'static str)
expected some field, but it was missing
BadSticker
expected sticker value, but didn’t find it
Trait Implementations§
source§impl Clone for ProtoError
impl Clone for ProtoError
source§fn clone(&self) -> ProtoError
fn clone(&self) -> ProtoError
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 ProtoError
impl Debug for ProtoError
source§impl Display for ProtoError
impl Display for ProtoError
source§impl Error for ProtoError
impl Error for ProtoError
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<ProtoError> for Error
impl From<ProtoError> for Error
source§fn from(e: ProtoError) -> Error
fn from(e: ProtoError) -> Error
Converts to this type from the input type.
source§impl PartialEq<ProtoError> for ProtoError
impl PartialEq<ProtoError> for ProtoError
source§fn eq(&self, other: &ProtoError) -> bool
fn eq(&self, other: &ProtoError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtoError
Auto Trait Implementations§
impl RefUnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl UnwindSafe for ProtoError
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