Function std::task::failingUnstable [-]  [+] [src]

pub fn failing() -> bool

True if the running task is currently panicking (e.g. will return true inside a destructor that is run while unwinding the stack after a call to panic!()).