Register new snapshots
This commit is contained in:
@@ -179,8 +179,8 @@ impl rtio::RtioPipe for UnixStream {
|
||||
}
|
||||
}
|
||||
|
||||
fn clone(&self) -> Box<rtio::RtioPipe:Send> {
|
||||
box UnixStream::new(self.inner.clone()) as Box<rtio::RtioPipe:Send>
|
||||
fn clone(&self) -> Box<rtio::RtioPipe + Send> {
|
||||
box UnixStream::new(self.inner.clone()) as Box<rtio::RtioPipe + Send>
|
||||
}
|
||||
|
||||
fn close_write(&mut self) -> IoResult<()> {
|
||||
@@ -229,9 +229,9 @@ impl UnixListener {
|
||||
}
|
||||
|
||||
impl rtio::RtioUnixListener for UnixListener {
|
||||
fn listen(~self) -> IoResult<Box<rtio::RtioUnixAcceptor:Send>> {
|
||||
fn listen(~self) -> IoResult<Box<rtio::RtioUnixAcceptor + Send>> {
|
||||
self.native_listen(128).map(|a| {
|
||||
box a as Box<rtio::RtioUnixAcceptor:Send>
|
||||
box a as Box<rtio::RtioUnixAcceptor + Send>
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -264,8 +264,8 @@ impl UnixAcceptor {
|
||||
}
|
||||
|
||||
impl rtio::RtioUnixAcceptor for UnixAcceptor {
|
||||
fn accept(&mut self) -> IoResult<Box<rtio::RtioPipe:Send>> {
|
||||
self.native_accept().map(|s| box s as Box<rtio::RtioPipe:Send>)
|
||||
fn accept(&mut self) -> IoResult<Box<rtio::RtioPipe + Send>> {
|
||||
self.native_accept().map(|s| box s as Box<rtio::RtioPipe + Send>)
|
||||
}
|
||||
fn set_timeout(&mut self, timeout: Option<u64>) {
|
||||
self.deadline = timeout.map(|a| ::io::timer::now() + a).unwrap_or(0);
|
||||
|
||||
Reference in New Issue
Block a user