diff --git a/src/run.rs b/src/run.rs index 7d0a187..76d5897 100644 --- a/src/run.rs +++ b/src/run.rs @@ -7,7 +7,6 @@ pub enum InvalidationReason{ #[derive(Debug)] pub enum Error{ - Timer(TimerError), AlreadyStarted, NotStarted, AlreadyFinished, @@ -19,12 +18,16 @@ impl std::fmt::Display for Error{ } impl std::error::Error for Error{} +enum RunState{ + Created{timer:Timer}, + Started{timer:Timer}, + Finished{timer:Timer}, +} + pub struct Run{ - timer:Timer, invalidated:Option, created:Time, - started:Option