[][src]Enum sonor::Error

pub enum Error {
    UPnP(Error),
    Xml(Error),
    InvalidUri(InvalidUri),
    MissingServiceForUPnPAction {
        service: URN,
        action: String,
        payload: String,
    },
    SpeakerNotIncludedInOwnZoneGroupState,
    GetZoneGroupStateReturnedNonSonos,
    NonSonosDevicesInSonosUPnPDiscovery,
}

Represents an error encountered by Sonor

Variants

UPnP(Error)

Errors sourced from the rupnp crate

Xml(Error)

Errors sourced from XML parsing

InvalidUri(InvalidUri)

Errors source from URI manipulation

MissingServiceForUPnPAction

This error is produced when attempting to perform an action and the specified service is not present.

Fields of MissingServiceForUPnPAction

service: URN

The required service for the action

action: String

The action to be performed

payload: String

The action payload

SpeakerNotIncludedInOwnZoneGroupState

An impossible? situation where a speaker isn't included in its own zone group state

GetZoneGroupStateReturnedNonSonos

An impossible? situation where GetZoneGroupState returned non-Sonos devices

NonSonosDevicesInSonosUPnPDiscovery

An impossible? situation where non-Sonos devices responded to UPnP discovery for Sono devices

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<InvalidUri> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.