Struct humthreads::ThreadScopeActivityGuard
source · [−]pub struct ThreadScopeActivityGuard { /* private fields */ }
Expand description
An RAII implementation of a “scoped activity” of a thread.
When this structure is dropped (falls out of scope), the thread reported activity will be reverted back to what it was when the guard was created.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ThreadScopeActivityGuard
impl Send for ThreadScopeActivityGuard
impl Sync for ThreadScopeActivityGuard
impl Unpin for ThreadScopeActivityGuard
impl UnwindSafe for ThreadScopeActivityGuard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more