pub struct CancelCheck { /* private fields */ }Expand description
A per-loop cancellation poller with a local iteration counter. Call
CancelCheck::tick once per loop iteration; it performs the real check
once per 4096 iterations, so the amortized per-iteration cost is a register
increment and a mask test. Public statement entry points perform the initial
immediate check.
Implementations§
Source§impl CancelCheck
impl CancelCheck
Trait Implementations§
Source§impl Debug for CancelCheck
impl Debug for CancelCheck
Auto Trait Implementations§
impl Freeze for CancelCheck
impl RefUnwindSafe for CancelCheck
impl Send for CancelCheck
impl Sync for CancelCheck
impl Unpin for CancelCheck
impl UnsafeUnpin for CancelCheck
impl UnwindSafe for CancelCheck
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