Gets a handle to the thread that invokes it.
§Examples
Getting a handle to the current thread withthread::current():
usestd::thread;lethandler = thread::Builder::new() .name("named thread".into()) .spawn(|| {lethandle = thread::current();assert_eq!(handle.name(),Some("named thread")); }) .unwrap();handler.join().unwrap();