This commit is contained in:
Quaternions 2024-07-31 16:09:29 -07:00
parent b5b20e0dba
commit 9cdb354cba

View File

@ -1,6 +1,7 @@
use crate::timer::{TimerFixed,Realtime,Paused,Unpaused}; use crate::timer::{TimerFixed,Realtime,Paused,Unpaused};
use crate::integer::Time; use crate::integer::Time;
#[derive(Clone,Debug)]
pub enum FlagReason{ pub enum FlagReason{
Anticheat, Anticheat,
StyleChange, StyleChange,
@ -41,12 +42,14 @@ impl std::fmt::Display for Error{
} }
impl std::error::Error for Error{} impl std::error::Error for Error{}
#[derive(Clone,Debug)]
enum RunState{ enum RunState{
Created, Created,
Started{timer:TimerFixed<Realtime,Unpaused>}, Started{timer:TimerFixed<Realtime,Unpaused>},
Finished{timer:TimerFixed<Realtime,Paused>}, Finished{timer:TimerFixed<Realtime,Paused>},
} }
#[derive(Clone,Debug)]
pub struct Run{ pub struct Run{
state:RunState, state:RunState,
flagged:Option<FlagReason>, flagged:Option<FlagReason>,