[][src]Enum script_traits::MediaSessionActionType

pub enum MediaSessionActionType {
    Play,
    Pause,
    SeekBackward,
    SeekForward,
    PreviousTrack,
    NextTrack,
    SkipAd,
    Stop,
    SeekTo,
}

The type of MediaSession action. https://w3c.github.io/mediasession/#enumdef-mediasessionaction

Variants

Play

The action intent is to resume playback.

Pause

The action intent is to pause the currently active playback.

SeekBackward

The action intent is to move the playback time backward by a short period (i.e. a few seconds).

SeekForward

The action intent is to move the playback time forward by a short period (i.e. a few seconds).

PreviousTrack

The action intent is to either start the current playback from the beginning if the playback has a notion, of beginning, or move to the previous item in the playlist if the playback has a notion of playlist.

NextTrack

The action is to move to the playback to the next item in the playlist if the playback has a notion of playlist.

SkipAd

The action intent is to skip the advertisement that is currently playing.

Stop

The action intent is to stop the playback and clear the state if appropriate.

SeekTo

The action intent is to move the playback time to a specific time.

Trait Implementations

impl Clone for MediaSessionActionType[src]

impl Debug for MediaSessionActionType[src]

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

impl Eq for MediaSessionActionType[src]

impl From<i32> for MediaSessionActionType[src]

impl Hash for MediaSessionActionType[src]

impl MallocSizeOf for MediaSessionActionType[src]

impl PartialEq<MediaSessionActionType> for MediaSessionActionType[src]

impl Serialize for MediaSessionActionType[src]

impl StructuralEq for MediaSessionActionType[src]

impl StructuralPartialEq for MediaSessionActionType[src]

Auto Trait Implementations

impl RefUnwindSafe for MediaSessionActionType

impl Send for MediaSessionActionType

impl Sync for MediaSessionActionType

impl Unpin for MediaSessionActionType

impl UnwindSafe for MediaSessionActionType

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: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Erased for T[src]

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

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

impl<T> MaybeBoxed<Box<T>> for T[src]

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

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

type Output = T

Should always be Self

impl<T> SetParameter for T[src]

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>, 
[src]