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§
source§impl Clone for MediaSessionEvent
impl Clone for MediaSessionEvent
source§fn clone(&self) -> MediaSessionEvent
fn clone(&self) -> MediaSessionEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaSessionEvent
impl Debug for MediaSessionEvent
source§impl<'de> Deserialize<'de> for MediaSessionEvent
impl<'de> Deserialize<'de> for MediaSessionEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MediaSessionEvent
impl RefUnwindSafe for MediaSessionEvent
impl Send for MediaSessionEvent
impl Sync for MediaSessionEvent
impl Unpin for MediaSessionEvent
impl UnwindSafe for MediaSessionEvent
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
Mutably borrows from an owned value. Read more