[][src]Struct cloudabi::tid

#[repr(C)]
pub struct tid(pub u32);

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.

Trait Implementations

impl Clone for tid[src]

impl Copy for tid[src]

impl Debug for tid[src]

impl Eq for tid[src]

impl Hash for tid[src]

impl PartialEq<tid> for tid[src]

impl StructuralEq for tid[src]

impl StructuralPartialEq for tid[src]

Auto Trait Implementations

impl Send for tid

impl Sync for tid

impl Unpin for tid

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.