pub struct Idle<'i> {
pub(crate) callback: Rc<RefCell<dyn CancellableIdle + 'i>>,
}
Expand description
An idle callback that was inserted in this loop
This handle allows you to cancel the callback. Dropping it will not cancel it.
Fields§
§callback: Rc<RefCell<dyn CancellableIdle + 'i>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'i> Freeze for Idle<'i>
impl<'i> !RefUnwindSafe for Idle<'i>
impl<'i> !Send for Idle<'i>
impl<'i> !Sync for Idle<'i>
impl<'i> Unpin for Idle<'i>
impl<'i> !UnwindSafe for Idle<'i>
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