Trait concurrency_traits::ThreadHandle[][src]

pub trait ThreadHandle {
    type ThreadId;
    fn thread_id(&self) -> &Self::ThreadId;
}
Expand description

A handle to a spawned thread. Analog for std::thread::JoinHandle.

Associated Types

type ThreadId[src]

The type of a thread portable id. Analog for std::thread::Thread.

Required methods

fn thread_id(&self) -> &Self::ThreadId[src]

Gets a thread id from this handle. Analog for std::thread::JoinHandle::thread.

Implementations on Foreign Types

impl<O> ThreadHandle for JoinHandle<O>[src]

type ThreadId = Thread

fn thread_id(&self) -> &Self::ThreadId[src]

Implementors