pub struct Player { /* private fields */ }
Implementations§
Source§impl Player
impl Player
pub fn new(config: &PlayerConfig) -> Result<Self, String>
pub fn play(&mut self, play_from: usize, looped: bool) -> Result<(), String>
pub fn stop(&mut self)
pub fn pause(&mut self)
pub fn resume(&mut self) -> Result<(), String>
pub fn playhead(&self) -> usize
pub fn playback_rate(&self) -> u32
pub fn samples_remaining(&self) -> usize
pub fn state(&self) -> PlayerStateTag
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl !RefUnwindSafe for Player
impl !Send for Player
impl !Sync for Player
impl Unpin for Player
impl !UnwindSafe for Player
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