pub struct IdleWatcher { /* private fields */ }Expand description
Polls the activity of every session someone subscribed to.
Implementations§
Source§impl IdleWatcher
impl IdleWatcher
Sourcepub fn has_subscriptions() -> bool
pub fn has_subscriptions() -> bool
Whether any subscription is waiting.
Sourcepub async fn tick(&mut self, homes: &HarnessHomes)
pub async fn tick(&mut self, homes: &HarnessHomes)
One pass: settle every subscription whose receiver finished a turn, ended, or outlived the subscription.
Trait Implementations§
Source§impl Debug for IdleWatcher
impl Debug for IdleWatcher
Auto Trait Implementations§
impl Freeze for IdleWatcher
impl RefUnwindSafe for IdleWatcher
impl Send for IdleWatcher
impl Sync for IdleWatcher
impl Unpin for IdleWatcher
impl UnsafeUnpin for IdleWatcher
impl UnwindSafe for IdleWatcher
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