pub enum MediaPatch {
Load(String),
Play,
Pause,
}Expand description
Sparse imperative commands sent to the native player after creation.
Variants§
Load(String)
Load a url (from .load() — re-reads the bound source) and start playing it.
Play
Resume/start playback (from .play()).
Pause
Pause playback (from .pause()).
Trait Implementations§
Source§impl Clone for MediaPatch
impl Clone for MediaPatch
Source§fn clone(&self) -> MediaPatch
fn clone(&self) -> MediaPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MediaPatch
impl Debug for MediaPatch
Source§impl PartialEq for MediaPatch
impl PartialEq for MediaPatch
Source§fn eq(&self, other: &MediaPatch) -> bool
fn eq(&self, other: &MediaPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MediaPatch
Auto Trait Implementations§
impl Freeze for MediaPatch
impl RefUnwindSafe for MediaPatch
impl Send for MediaPatch
impl Sync for MediaPatch
impl Unpin for MediaPatch
impl UnsafeUnpin for MediaPatch
impl UnwindSafe for MediaPatch
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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