runtime/
status.rs

1use crate::RuntimeError;
2
3/// The threads status.
4#[derive(Debug, PartialEq, Eq)]
5#[allow(variant_size_differences)]
6#[allow(clippy::exhaustive_enums)]
7pub enum Status {
8	/// Thread is new, and hasn't yet started. This is the initial status of all threads.
9	New,
10	/// The thread is busy processing.
11	Busy,
12	/// The thread is waiting for more work to complete.
13	Waiting,
14	/// The thread is finished. This is a final state.
15	Ended,
16	/// The thread has requested all threads pause.
17	RequestPause,
18	/// The thread has requested all threads resume.
19	RequestResume,
20	/// The thread has requested all threads end.
21	RequestEnd,
22	/// The thread has errored with provided `RuntimeError`. This is a final state.
23	Error(RuntimeError),
24}