summaryrefslogtreecommitdiff
path: root/src/mining.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2018-04-16 02:28:33 -0500
committertom barrett <spalf0@gmail.com>2018-04-16 02:28:33 -0500
commit2940809bf50c2874487ba55efb17ba03c52dd9c2 (patch)
tree2a69facf7922c38256e5886484ad45a566cda970 /src/mining.rs
parent4d7a7e368a3f0a6b1261e1b9180a2647eb158047 (diff)
-removed trait objects and went to structs with enumerations completely
Diffstat (limited to 'src/mining.rs')
-rw-r--r--src/mining.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mining.rs b/src/mining.rs
deleted file mode 100644
index ae4af49..0000000
--- a/src/mining.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-extern crate serde_json;
-
-use std::time::SystemTime;
-
-#[derive(Serialize, Deserialize, Debug, Clone)]
-pub struct Mining {
- pub range : f64,
- pub status : bool,
- time : u64,
- start : Option<SystemTime>,
-}
-
-impl Mining {
- pub fn new() -> Mining {
- Mining {
- range : 10.0,
- status : false,
- time : 1,
- start : None,
- }
- }
-
- pub fn start(&mut self) {
- self.status = true;
- }
-
- pub fn stop(&mut self) {
- self.status = false;
- }
-}