pub struct Player { /* private fields */ }
Implementations§
Source§impl Player
impl Player
pub fn new() -> Self
pub fn open(&mut self, src: &str)
pub fn inner_thread(&mut self)
pub fn play(&self)
pub fn pause(&self)
pub fn toggle_play(&self)
Sourcepub fn seek_relative(&self, dt: f64)
pub fn seek_relative(&self, dt: f64)
seek to time relative from current position
pub fn current_position(&self) -> f64
pub fn duration(&self) -> f64
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