Trait concurrency_traits::ThreadHandle[][src]

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

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.

Loading content...

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

type ThreadId = Thread

Loading content...

Implementors

Loading content...