pub enum SnapcastError {
ParseError(String),
InvalidRequest(String),
MethodNotFound(String),
InvalidParams(String),
InternalError(String),
Unknown(i64, String),
}
Expand description
an error returned from the snapcast server
Variants§
ParseError(String)
InvalidRequest(String)
MethodNotFound(String)
InvalidParams(String)
InternalError(String)
Unknown(i64, String)
Implementations§
Trait Implementations§
Source§impl Clone for SnapcastError
impl Clone for SnapcastError
Source§fn clone(&self) -> SnapcastError
fn clone(&self) -> SnapcastError
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 SnapcastError
impl Debug for SnapcastError
Source§impl<'de> Deserialize<'de> for SnapcastError
impl<'de> Deserialize<'de> for SnapcastError
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SnapcastError
impl Display for SnapcastError
Source§impl Error for SnapcastError
impl Error for SnapcastError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<SnapcastError> for ClientError
impl From<SnapcastError> for ClientError
Source§fn from(source: SnapcastError) -> Self
fn from(source: SnapcastError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnapcastError
impl PartialEq for SnapcastError
Source§impl Serialize for SnapcastError
impl Serialize for SnapcastError
impl StructuralPartialEq for SnapcastError
Auto Trait Implementations§
impl Freeze for SnapcastError
impl RefUnwindSafe for SnapcastError
impl Send for SnapcastError
impl Sync for SnapcastError
impl Unpin for SnapcastError
impl UnwindSafe for SnapcastError
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