pub struct NowPlayingPerl { /* private fields */ }Implementations§
Source§impl NowPlayingPerl
impl NowPlayingPerl
pub fn new() -> Self
pub fn get_info(&self) -> RwLockReadGuard<'_, Option<NowPlayingInfo>>
Trait Implementations§
Source§impl Controller for NowPlayingPerl
impl Controller for NowPlayingPerl
fn is_info_some(&self) -> bool
Source§fn toggle_shuffle(&self) -> bool
fn toggle_shuffle(&self) -> bool
Toggles the shuffle state of the playback queue. Read more
Source§fn toggle_repeat(&self) -> bool
fn toggle_repeat(&self) -> bool
Toggles the repeat state of the playback queue. Read more
Source§fn start_forward_seek(&self) -> bool
fn start_forward_seek(&self) -> bool
Starts a forward seek operation. Read more
Source§fn end_forward_seek(&self) -> bool
fn end_forward_seek(&self) -> bool
Ends a forward seek operation. Read more
Source§fn start_backward_seek(&self) -> bool
fn start_backward_seek(&self) -> bool
Starts a backward seek operation. Read more
Source§fn end_backward_seek(&self) -> bool
fn end_backward_seek(&self) -> bool
Ends a backward seek operation. Read more
Source§fn go_back_fifteen_seconds(&self) -> bool
fn go_back_fifteen_seconds(&self) -> bool
Seeks backward by fifteen seconds. Read more
Source§fn skip_fifteen_seconds(&self) -> bool
fn skip_fifteen_seconds(&self) -> bool
Skips forward by fifteen seconds. Read more
Source§fn set_playback_speed(&self, speed: i32)
fn set_playback_speed(&self, speed: i32)
Sets the playback speed of the currently active media client. Read more
Source§fn set_elapsed_time(&self, elapsed_time: f64)
fn set_elapsed_time(&self, elapsed_time: f64)
Sets the elapsed time of the currently playing media. Read more
Source§impl Drop for NowPlayingPerl
impl Drop for NowPlayingPerl
Source§impl Subscription for NowPlayingPerl
impl Subscription for NowPlayingPerl
fn get_info(&self) -> RwLockReadGuard<'_, Option<NowPlayingInfo>>
fn get_token_counter(&self) -> Arc<AtomicU64>
fn get_listeners( &self, ) -> Arc<Mutex<HashMap<ListenerToken, Box<dyn Fn(RwLockReadGuard<'_, Option<NowPlayingInfo>>) + Send + Sync>>>>
Source§fn subscribe<F: Fn(RwLockReadGuard<'_, Option<NowPlayingInfo>>) + Send + Sync + 'static>(
&self,
listener: F,
) -> ListenerToken
fn subscribe<F: Fn(RwLockReadGuard<'_, Option<NowPlayingInfo>>) + Send + Sync + 'static>( &self, listener: F, ) -> ListenerToken
Subscribes a listener to receive updates when the “Now Playing” information changes. Read more
Source§fn unsubscribe(&self, token: ListenerToken)
fn unsubscribe(&self, token: ListenerToken)
Unsubscribes a previously registered listener using the provided
ListenerToken. Read moreAuto Trait Implementations§
impl Freeze for NowPlayingPerl
impl RefUnwindSafe for NowPlayingPerl
impl Send for NowPlayingPerl
impl Sync for NowPlayingPerl
impl Unpin for NowPlayingPerl
impl UnsafeUnpin for NowPlayingPerl
impl UnwindSafe for NowPlayingPerl
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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