pub enum MediaSessionEvent {
SetMetadata(MediaMetadata),
PlaybackStateChange(MediaSessionPlaybackState),
SetPositionState(MediaPositionState),
}
Expand description
Type of events sent from script to the embedder about the media session.
Variants
SetMetadata(MediaMetadata)
Indicates that the media metadata is available.
PlaybackStateChange(MediaSessionPlaybackState)
Indicates that the playback state has changed.
SetPositionState(MediaPositionState)
Indicates that the position state is set.
Trait Implementations
sourceimpl Clone for MediaSessionEvent
impl Clone for MediaSessionEvent
sourcefn clone(&self) -> MediaSessionEvent
fn clone(&self) -> MediaSessionEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MediaSessionEvent
impl Debug for MediaSessionEvent
sourceimpl<'de> Deserialize<'de> for MediaSessionEvent
impl<'de> Deserialize<'de> for MediaSessionEvent
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for MediaSessionEvent
impl Serialize for MediaSessionEvent
Auto Trait Implementations
impl RefUnwindSafe for MediaSessionEvent
impl Send for MediaSessionEvent
impl Sync for MediaSessionEvent
impl Unpin for MediaSessionEvent
impl UnwindSafe for MediaSessionEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more