From 9ec2efb2f3f3d1b712afed0040f3811165fa4ba0 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 1 Feb 2016 16:20:46 +0100 Subject: [PATCH] Update mod.rs --- util/src/io/mod.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/util/src/io/mod.rs b/util/src/io/mod.rs index 4b53a46ae..f81732ce1 100644 --- a/util/src/io/mod.rs +++ b/util/src/io/mod.rs @@ -13,20 +13,20 @@ //! data: u32 //! } //! -//! impl IoHandler for MyHandler { -//! fn initialize(&self, io: &IoContext) { -//! io.register_timer(0, 1000).unwrap(); -//! } -//! -//! fn timeout(&self, _io: &IoContext, timer: TimerToken) { -//! println!("Timeout {}", timer); -//! } -//! -//! fn message(&self, _io: &IoContext, message: &MyMessage) { -//! println!("Message {}", message.data); -//! } +//! impl IoHandler for MyHandler { +//! fn initialize(&self, io: &IoContext) { +//! io.register_timer(0, 1000).unwrap(); //! } //! +//! fn timeout(&self, _io: &IoContext, timer: TimerToken) { +//! println!("Timeout {}", timer); +//! } +//! +//! fn message(&self, _io: &IoContext, message: &MyMessage) { +//! println!("Message {}", message.data); +//! } +//! } +//! //! fn main () { //! let mut service = IoService::::start().expect("Error creating network service"); //! service.register_handler(Arc::new(MyHandler)).unwrap();