pub struct PollHandle { /* private fields */ }Expand description
Handle for controlling an active polling loop.
Implementations§
Source§impl PollHandle
impl PollHandle
Sourcepub fn set_interval(&self, interval: Duration)
pub fn set_interval(&self, interval: Duration)
Adjust the polling interval dynamically (battery conservation).
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the polling loop is still running.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PollHandle
impl RefUnwindSafe for PollHandle
impl Send for PollHandle
impl Sync for PollHandle
impl Unpin for PollHandle
impl UnsafeUnpin for PollHandle
impl UnwindSafe for PollHandle
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