Function std::task::failing[src]

pub fn failing() -> bool

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