pub struct PlayerStateWrapper(pub Arc<Mutex<PlayerController>>);Expand description
Player state wrapper for Tauri.
Uses Arc to allow sharing with the MediaSession handler on Android for lockscreen control integration.
@req: UR-005 - Control media playback @req: DR-001 - Player state machine
Tuple Fields§
§0: Arc<Mutex<PlayerController>>Auto Trait Implementations§
impl Freeze for PlayerStateWrapper
impl !RefUnwindSafe for PlayerStateWrapper
impl Send for PlayerStateWrapper
impl Sync for PlayerStateWrapper
impl Unpin for PlayerStateWrapper
impl UnsafeUnpin for PlayerStateWrapper
impl !UnwindSafe for PlayerStateWrapper
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