fn thread_name() -> Option<String>Expand description
The name of the calling thread, without thread::current, which panics
once the local data of the thread is gone, like in a destructor of it
while the thread exits. A panic in the hook aborts without any message.
The kernel keeps the names of the named threads, at most 15 bytes of
them, the others have the one of the thread which started them. The
main thread has the name of the process there, it gets main like
from the default hook.