pub(crate) struct Thread {
pub(crate) bucket: usize,
pub(crate) index: usize,
}Expand description
Data which is unique to the current thread while it is running. A thread ID may be reused after a thread exits.
Fields§
§bucket: usizeThe bucket this thread’s local storage will be in.
index: usizeThe index into the bucket this thread’s local storage is in.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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