#[repr(C)]pub struct tid(pub u32);Expand description
Unique system-local identifier of a thread. This identifier is only valid during the lifetime of the thread.
Threads must be aware of their thread identifier, as it is written it into locks when acquiring them for writing. It is not advised to use these identifiers for any other purpose.
As the thread identifier is also stored in lock when
LOCK_WRLOCKED is set, the top two bits of the thread
must always be set to zero.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for tid
impl Eq for tid
impl StructuralPartialEq for tid
Auto Trait Implementations§
impl Freeze for tid
impl RefUnwindSafe for tid
impl Send for tid
impl Sync for tid
impl Unpin for tid
impl UnwindSafe for tid
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