[][src]Enum aspotify::model::PlayerErrorReason

pub enum PlayerErrorReason {
    NoPrevTrack,
    NoNextTrack,
    NoSpecificTrack,
    AlreadyPaused,
    NotPaused,
    NotPlayingLocally,
    NotPlayingTrack,
    NotPlayingContext,
    EndlessContext,
    ContextDisallow,
    AlreadyPlaying,
    RateLimited,
    RemoteControlDisallow,
    DeviceNotControllable,
    VolumeControlDisallow,
    NoActiveDevice,
    PremiumRequired,
    Unknown,
}

A reason for an PlayerError.

Variants

NoPrevTrack

There is no previous track in the context.

NoNextTrack

There is no next track in the context.

NoSpecificTrack

The requested track does not exist.

AlreadyPaused

Playback is paused.

NotPaused

Playback is not paused.

NotPlayingLocally

Playback is not on the local device.

NotPlayingTrack

No track is currently playing.

NotPlayingContext

No context is currently playing.

EndlessContext

The current context is endless, so the shuffle command cannot be applied.

ContextDisallow

The command cannot be performed on the current context.

AlreadyPlaying

The command requested a new track and context to play, but it is the same as the old one and there is a resume point.

RateLimited

Too frequent track play.

RemoteControlDisallow

The context cannot be remote controlled.

DeviceNotControllable

It is not possible to remote control the device.

VolumeControlDisallow

It is not possible to remote control the device's volume.

NoActiveDevice

The user does not have an active device.

PremiumRequired

The action requires premium, which the user doesn't have.

Unknown

The action is restricted due to unknown reasons.

Trait Implementations

impl Clone for PlayerErrorReason[src]

impl Copy for PlayerErrorReason[src]

impl Debug for PlayerErrorReason[src]

impl<'de> Deserialize<'de> for PlayerErrorReason[src]

impl Display for PlayerErrorReason[src]

impl Eq for PlayerErrorReason[src]

impl Hash for PlayerErrorReason[src]

impl PartialEq<PlayerErrorReason> for PlayerErrorReason[src]

impl Serialize for PlayerErrorReason[src]

impl StructuralEq for PlayerErrorReason[src]

impl StructuralPartialEq for PlayerErrorReason[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,