/// State of the task instance.
pubmodinstance{/// Set if the task is running.
pubconstRUNNING:usize=1<<1;/// Set if the task has been completed.
pubconstCOMPLETED:usize=1<<2;/// Set if the task has been Cancelled.
pubconstCANCELLED:usize=1<<3;/// Set if the task has been Timeout.
pubconstTIMEOUT:usize=1<<4;}pub(crate)modinstance_chain{/// Set if the TaskInstancesChain is Living.
pub(crate)constLIVING:usize=1<<1;/// Set if the TaskInstancesChain has been dropped.
pub(crate)constDROPPED:usize=1<<2;/// Set if the `TaskInstancesChainMaintainer` has been dropped.
/// Indicates that the running instance of the task is no longer maintained.
pub(crate)constABANDONED:usize=1<<3;}