pub struct MediaController { /* private fields */ }Implementations§
Source§impl MediaController
impl MediaController
pub fn new(app: App, receiver: Receiver) -> Result<Self, Error>
pub async fn load<P: Into<LoadRequestData>>( &self, load_request: P, ) -> Result<(), Error>
pub async fn start(&self) -> Result<(), Error>
pub async fn stop(&self) -> Result<(), Error>
pub async fn pause(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for MediaController
impl Clone for MediaController
Source§fn clone(&self) -> MediaController
fn clone(&self) -> MediaController
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for MediaController
impl !UnwindSafe for MediaController
impl Freeze for MediaController
impl Send for MediaController
impl Sync for MediaController
impl Unpin for MediaController
impl UnsafeUnpin for MediaController
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