pub struct WeakThreadHandle { /* private fields */ }Expand description
A non-owning thread observer for ordinary task context.
Implementations§
Source§impl WeakThreadHandle
impl WeakThreadHandle
Sourcepub fn upgrade(&self) -> Option<ThreadHandle>
pub fn upgrade(&self) -> Option<ThreadHandle>
Attempts to acquire a strong reference while the thread header is alive.
Trait Implementations§
Source§impl Clone for WeakThreadHandle
impl Clone for WeakThreadHandle
Source§fn clone(&self) -> WeakThreadHandle
fn clone(&self) -> WeakThreadHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WeakThreadHandle
impl !UnwindSafe for WeakThreadHandle
impl Freeze for WeakThreadHandle
impl Send for WeakThreadHandle
impl Sync for WeakThreadHandle
impl Unpin for WeakThreadHandle
impl UnsafeUnpin for WeakThreadHandle
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