pub enum PlayerErrorReason {
Show 18 variants
NoPrevTrack,
NoNextTrack,
NoSpecificTrack,
AlreadyPaused,
NotPaused,
NotPlayingLocally,
NotPlayingTrack,
NotPlayingContext,
EndlessContext,
ContextDisallow,
AlreadyPlaying,
RateLimited,
RemoteControlDisallow,
DeviceNotControllable,
VolumeControlDisallow,
NoActiveDevice,
PremiumRequired,
Unknown,
}
Expand description
A reason for an error caused by the Spotify player.
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§
Source§impl Clone for PlayerErrorReason
impl Clone for PlayerErrorReason
Source§fn clone(&self) -> PlayerErrorReason
fn clone(&self) -> PlayerErrorReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PlayerErrorReason
impl Debug for PlayerErrorReason
Source§impl<'de> Deserialize<'de> for PlayerErrorReason
impl<'de> Deserialize<'de> for PlayerErrorReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for PlayerErrorReason
impl Display for PlayerErrorReason
Source§impl Hash for PlayerErrorReason
impl Hash for PlayerErrorReason
Source§impl PartialEq for PlayerErrorReason
impl PartialEq for PlayerErrorReason
Source§impl Serialize for PlayerErrorReason
impl Serialize for PlayerErrorReason
impl Copy for PlayerErrorReason
impl Eq for PlayerErrorReason
impl StructuralPartialEq for PlayerErrorReason
Auto Trait Implementations§
impl Freeze for PlayerErrorReason
impl RefUnwindSafe for PlayerErrorReason
impl Send for PlayerErrorReason
impl Sync for PlayerErrorReason
impl Unpin for PlayerErrorReason
impl UnwindSafe for PlayerErrorReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more