Enum sonos::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Discovery(SSDPError), XMLParse(ParseError), AVTransportError(AVTransportError), ParseError, DeviceUnreachable, BadResponse, DeviceNotFound(String), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Discovery(SSDPError)
An error occurred while attempting to discover devices
XMLParse(ParseError)
An error occurred while parsing device response
AVTransportError(AVTransportError)
ParseError
DeviceUnreachable
BadResponse
DeviceNotFound(String)
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for ErrorKind
impl Display for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<AVTransportError> for ErrorKind
[src]
fn from(error: AVTransportError) -> Self
[src]
Performs the conversion.