pub struct EventPoller { /* private fields */ }Expand description
Event poller that monitors Spotify playback state
Implementations§
Source§impl EventPoller
impl EventPoller
pub fn new(event_tx: Sender<RpcNotification>) -> Self
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Set the polling interval
Auto Trait Implementations§
impl Freeze for EventPoller
impl RefUnwindSafe for EventPoller
impl Send for EventPoller
impl Sync for EventPoller
impl Unpin for EventPoller
impl UnwindSafe for EventPoller
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