Enum librespot_playback::player::PlayerEvent[][src]

pub enum PlayerEvent {
    Stopped {
        play_request_id: u64,
        track_id: SpotifyId,
    },
    Started {
        play_request_id: u64,
        track_id: SpotifyId,
        position_ms: u32,
    },
    Changed {
        old_track_id: SpotifyId,
        new_track_id: SpotifyId,
    },
    Loading {
        play_request_id: u64,
        track_id: SpotifyId,
        position_ms: u32,
    },
    Playing {
        play_request_id: u64,
        track_id: SpotifyId,
        position_ms: u32,
        duration_ms: u32,
    },
    Paused {
        play_request_id: u64,
        track_id: SpotifyId,
        position_ms: u32,
        duration_ms: u32,
    },
    TimeToPreloadNextTrack {
        play_request_id: u64,
        track_id: SpotifyId,
    },
    EndOfTrack {
        play_request_id: u64,
        track_id: SpotifyId,
    },
    Unavailable {
        play_request_id: u64,
        track_id: SpotifyId,
    },
    VolumeSet {
        volume: u16,
    },
}

Variants

Stopped

Fields of Stopped

play_request_id: u64track_id: SpotifyId
Started

Fields of Started

play_request_id: u64track_id: SpotifyIdposition_ms: u32
Changed

Fields of Changed

old_track_id: SpotifyIdnew_track_id: SpotifyId
Loading

Fields of Loading

play_request_id: u64track_id: SpotifyIdposition_ms: u32
Playing

Fields of Playing

play_request_id: u64track_id: SpotifyIdposition_ms: u32duration_ms: u32
Paused

Fields of Paused

play_request_id: u64track_id: SpotifyIdposition_ms: u32duration_ms: u32
TimeToPreloadNextTrack

Fields of TimeToPreloadNextTrack

play_request_id: u64track_id: SpotifyId
EndOfTrack

Fields of EndOfTrack

play_request_id: u64track_id: SpotifyId
Unavailable

Fields of Unavailable

play_request_id: u64track_id: SpotifyId
VolumeSet

Fields of VolumeSet

volume: u16

Implementations

impl PlayerEvent[src]

Trait Implementations

impl Clone for PlayerEvent[src]

impl Debug for PlayerEvent[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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>,