Struct std::thread::PanicGuard
source · struct PanicGuard;
Expand description
Used to ensure that park
and park_timeout
do not unwind, as that can
cause undefined behaviour if not handled correctly (see #102398 for context).
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PanicGuard
impl Send for PanicGuard
impl Sync for PanicGuard
impl Unpin for PanicGuard
impl UnwindSafe 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