1
Fork 0

Register new snapshots

This commit is contained in:
Alex Crichton 2014-06-14 11:03:34 -07:00
parent 6d8342f5e9
commit 89b0e6e12b
94 changed files with 321 additions and 841 deletions

View file

@ -67,7 +67,7 @@ pub struct Timer {
}
struct Inner {
cb: Option<Box<rtio::Callback:Send>>,
cb: Option<Box<rtio::Callback + Send>>,
interval: u64,
repeat: bool,
target: u64,
@ -251,7 +251,7 @@ impl rtio::RtioTimer for Timer {
Timer::sleep(msecs);
}
fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) {
fn oneshot(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) {
let now = now();
let mut inner = self.inner();
@ -263,7 +263,7 @@ impl rtio::RtioTimer for Timer {
unsafe { HELPER.send(NewTimer(inner)); }
}
fn period(&mut self, msecs: u64, cb: Box<rtio::Callback:Send>) {
fn period(&mut self, msecs: u64, cb: Box<rtio::Callback + Send>) {
let now = now();
let mut inner = self.inner();