pub enum MediaSessionActionType {
Play,
Pause,
SeekBackward,
SeekForward,
PreviousTrack,
NextTrack,
SkipAd,
Stop,
SeekTo,
}
Expand description
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§
source§impl Clone for MediaSessionActionType
impl Clone for MediaSessionActionType
source§fn clone(&self) -> MediaSessionActionType
fn clone(&self) -> MediaSessionActionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaSessionActionType
impl Debug for MediaSessionActionType
source§impl<'de> Deserialize<'de> for MediaSessionActionType
impl<'de> Deserialize<'de> for MediaSessionActionType
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 From<i32> for MediaSessionActionType
impl From<i32> for MediaSessionActionType
source§fn from(value: i32) -> MediaSessionActionType
fn from(value: i32) -> MediaSessionActionType
source§impl Hash for MediaSessionActionType
impl Hash for MediaSessionActionType
source§impl MallocSizeOf for MediaSessionActionType
impl MallocSizeOf for MediaSessionActionType
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for MediaSessionActionType
impl PartialEq for MediaSessionActionType
source§fn eq(&self, other: &MediaSessionActionType) -> bool
fn eq(&self, other: &MediaSessionActionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MediaSessionActionType
impl Serialize for MediaSessionActionType
impl Eq for MediaSessionActionType
impl StructuralPartialEq for MediaSessionActionType
Auto Trait Implementations§
impl Freeze for MediaSessionActionType
impl RefUnwindSafe for MediaSessionActionType
impl Send for MediaSessionActionType
impl Sync for MediaSessionActionType
impl Unpin for MediaSessionActionType
impl UnwindSafe for MediaSessionActionType
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<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<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