mlua_luau_scheduler/
status.rs1#![allow(clippy::module_name_repetitions)]
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub enum Status {
8 NotStarted,
10 Running,
12 Completed,
14}
15
16impl Status {
17 #[must_use]
18 pub const fn is_not_started(self) -> bool {
19 matches!(self, Self::NotStarted)
20 }
21
22 #[must_use]
23 pub const fn is_running(self) -> bool {
24 matches!(self, Self::Running)
25 }
26
27 #[must_use]
28 pub const fn is_completed(self) -> bool {
29 matches!(self, Self::Completed)
30 }
31}