[][src]Struct sgx_tstd::thread::SgxThread

pub struct SgxThread { /* fields omitted */ }

A handle to a thread.


impl SgxThread[src]

pub fn unpark(&self)[src]

Atomically makes the handle's token available if it is not already.

Every thread is equipped with some basic low-level blocking support, via the park function and the unpark() method. These can be used as a more CPU-efficient implementation of a spinlock.

pub fn id(&self) -> ThreadId[src]

Gets the thread's unique identifier.

pub fn name(&self) -> Option<&str>[src]

Gets the thread's name.

For more information about named threads, see [this module-level documentation][naming-threads].

Trait Implementations

impl Clone for SgxThread[src]

impl Debug for SgxThread[src]

Auto Trait Implementations

impl !RefUnwindSafe for SgxThread

impl Send for SgxThread

impl Sync for SgxThread

impl Unpin for SgxThread

impl !UnwindSafe for SgxThread

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.