pub struct PollingAction {}Expand description
This is a convenience for a polling action. This struct starts a repeating timer that calls an action repeatedly.
Implementations§
Source§impl PollingAction
impl PollingAction
pub fn spawn<F>( server_state: Arc<RwLock<ServerState>>, interval_ms: u64, action: F, ) -> PollingAction
Auto Trait Implementations§
impl Freeze for PollingAction
impl RefUnwindSafe for PollingAction
impl Send for PollingAction
impl Sync for PollingAction
impl Unpin for PollingAction
impl UnwindSafe for PollingAction
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