struct PanicGuard {
ex: Executor,
cancel_flag: Arc<CondWait>,
group: Weak<Inner>,
id: usize,
}Expand description
Lives inside the spawned task. If the task or its callback panics, it
signals cancel_flag and removes the task from the group, so cancel
does not wait forever.
Fields§
§ex: Executor§cancel_flag: Arc<CondWait>§group: Weak<Inner>§id: usizeTrait Implementations§
Source§impl Drop for PanicGuard
impl Drop for PanicGuard
Auto Trait Implementations§
impl !RefUnwindSafe for PanicGuard
impl !UnwindSafe for PanicGuard
impl Freeze for PanicGuard
impl Send for PanicGuard
impl Sync for PanicGuard
impl Unpin for PanicGuard
impl UnsafeUnpin for PanicGuard
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