[−][src]Function is_main_thread::is_main_thread
pub fn is_main_thread() -> Option<bool>
The sole simple function, to check whether or not the calling thread is the main thread
If the current platform is not supported by this test the 'None' is returned, else 'Some(bool)' is returned with the appropriate value