pub trait AsThreadId {
    // Required method
    fn as_thread_id(&self) -> ThreadId;
}
Expand description

JoinHandle extension trait that gives you the thread’s ThreadId

Required Methods§

source

fn as_thread_id(&self) -> ThreadId

Get the ThreadId of the target thread

Implementations on Foreign Types§

source§

impl<T> AsThreadId for JoinHandle<T>

Available on Unix or Windows only.

Implementors§