pub struct JoinGuard<'a, T: Send + 'a> { /* private fields */ }
Expand description
A RAII guard for that joins a scoped thread upon drop
§Panics
JoinGuard
will panic on join or drop if its owned thread panics
Implementations§
Trait Implementations§
Source§impl<T: Send + 'static> ScopedDetach for JoinGuard<'static, T>
impl<T: Send + 'static> ScopedDetach for JoinGuard<'static, T>
impl<'a, T: Send + 'a> Sync for JoinGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for JoinGuard<'a, T>
impl<'a, T> !RefUnwindSafe for JoinGuard<'a, T>
impl<'a, T> Send for JoinGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for JoinGuard<'a, T>
impl<'a, T> !UnwindSafe for JoinGuard<'a, T>
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