pub struct ThreadKey { /* private fields */ }
Expand description
A ThreadId
that is guaranteed to refer to the current thread, since this is !Send
.
Implementations§
Trait Implementations§
impl Copy for ThreadKey
impl Eq for ThreadKey
impl StructuralPartialEq for ThreadKey
Auto Trait Implementations§
impl Freeze for ThreadKey
impl RefUnwindSafe for ThreadKey
impl !Send for ThreadKey
impl !Sync for ThreadKey
impl Unpin for ThreadKey
impl UnwindSafe for ThreadKey
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