delay_timer_wf/timer/runtime_trace/
state.rs

1/// State of the task instance.
2pub mod instance {
3    /// Set if the task is running.
4    pub const RUNNING: usize = 1 << 1;
5
6    /// Set if the task has been completed.
7    pub const COMPLETED: usize = 1 << 2;
8
9    /// Set if the task has been Cancelled.
10    pub const CANCELLED: usize = 1 << 3;
11
12    /// Set if the task has been Timeout.
13    pub const TIMEOUT: usize = 1 << 4;
14}
15
16pub(crate) mod instance_chain {
17    /// Set if the TaskInstancesChain is Living.
18    pub(crate) const LIVING: usize = 1 << 1;
19
20    /// Set if the TaskInstancesChain has been dropped.
21    pub(crate) const DROPPED: usize = 1 << 2;
22
23    /// Set if the `TaskInstancesChainMaintainer` has been dropped.
24    /// Indicates that the running instance of the task is no longer maintained.
25    pub(crate) const ABANDONED: usize = 1 << 3;
26}