Enum rusty_sonos::errors::SpeakerError
source · pub enum SpeakerError {
RequestError(Error),
ResponseError(Error),
XMLError(XMLError),
InvalidInput(String),
SonosError(SonosError),
}Expand description
Errors that may be returned from speaker methods
Variants§
RequestError(Error)
An error that occurred while making a request to the speaker
ResponseError(Error)
An error that occurred while processing the response from the speaker
XMLError(XMLError)
An XML-related error
InvalidInput(String)
Bad input for a speaker action, with the string containing additional details
SonosError(SonosError)
A speaker-specific error
Trait Implementations§
source§impl Debug for SpeakerError
impl Debug for SpeakerError
source§impl Display for SpeakerError
impl Display for SpeakerError
source§impl Error for SpeakerError
impl Error for SpeakerError
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<Error> for SpeakerError
impl From<Error> for SpeakerError
source§impl From<SonosError> for SpeakerError
impl From<SonosError> for SpeakerError
source§fn from(error: SonosError) -> Self
fn from(error: SonosError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpeakerError
impl Send for SpeakerError
impl Sync for SpeakerError
impl Unpin for SpeakerError
impl !UnwindSafe for SpeakerError
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