Mercurial > templog
diff rust/src/sensor.rs @ 632:bde302def78e rust
moving to riker, nowhere near yet
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 22 Aug 2019 23:59:50 +0800 |
parents | c57821a60e51 |
children | 490e9e15b98c |
line wrap: on
line diff
--- a/rust/src/sensor.rs Sat Jul 06 18:28:34 2019 +0800 +++ b/rust/src/sensor.rs Thu Aug 22 23:59:50 2019 +0800 @@ -1,21 +1,15 @@ -extern crate regex; - -use actix::prelude::*; +use riker::actors::*; use std::time::Duration; use std::io; use std::fs::File; use std::io::{Read,BufReader,BufRead}; use std::path::PathBuf; -use std::error::Error; -use std::sync::Arc; + use std::str::FromStr; -use tokio_core::reactor::Interval; -use tokio_core::reactor::Handle; -use futures::Stream; -use types::*; -use ::Config; +use super::types::*; +use super::config::Config; pub struct OneWireSensor { config: Config,