Enum rusty_sonos::errors::XMLError
source · pub enum XMLError {
ParseError(Error),
ElementNotFound(String),
UnexpectedValue(String),
XMLBuilderError(XMLError),
}Expand description
An XML-related error
Variants§
ParseError(Error)
Parsing error
ElementNotFound(String)
Element not found in XML
UnexpectedValue(String)
An unexpected value was found while processing XML
XMLBuilderError(XMLError)
An error occurred while building XML
Trait Implementations§
source§impl Error for XMLError
impl Error for XMLError
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<XMLError> for SpeakerError
impl From<XMLError> for SpeakerError
Auto Trait Implementations§
impl RefUnwindSafe for XMLError
impl Send for XMLError
impl Sync for XMLError
impl Unpin for XMLError
impl UnwindSafe for XMLError
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