pub struct ThreadLocalStorageKey(/* private fields */);
Expand description
An opaque, per-thread identifier. These are only guaranteed to be unique for
live threads. See ThreadLocalStorage::unregister_current_thread
.
Trait Implementations§
Source§impl Clone for ThreadLocalStorageKey
impl Clone for ThreadLocalStorageKey
Source§fn clone(&self) -> ThreadLocalStorageKey
fn clone(&self) -> ThreadLocalStorageKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ThreadLocalStorageKey
impl Debug for ThreadLocalStorageKey
Source§impl PartialEq for ThreadLocalStorageKey
impl PartialEq for ThreadLocalStorageKey
impl Copy for ThreadLocalStorageKey
impl Eq for ThreadLocalStorageKey
impl StructuralPartialEq for ThreadLocalStorageKey
Auto Trait Implementations§
impl Freeze for ThreadLocalStorageKey
impl RefUnwindSafe for ThreadLocalStorageKey
impl Send for ThreadLocalStorageKey
impl Sync for ThreadLocalStorageKey
impl Unpin for ThreadLocalStorageKey
impl UnwindSafe for ThreadLocalStorageKey
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