1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-30 18:34:36 +01:00

update changelog

This commit is contained in:
Nikolay Kim 2018-01-03 23:59:12 -08:00
parent 9559f6a175
commit fdf7726831
3 changed files with 9 additions and 3 deletions

View File

@ -15,6 +15,10 @@
* Content compression/decompression (br, gzip, deflate) * Content compression/decompression (br, gzip, deflate)
* Server multi-threading
* Gracefull shutdown support
## 0.2.1 (2017-11-03) ## 0.2.1 (2017-11-03)

View File

@ -248,6 +248,7 @@ impl Node<()> {
} }
/// Low-level io stream operations
pub trait IoStream: AsyncRead + AsyncWrite + 'static { pub trait IoStream: AsyncRead + AsyncWrite + 'static {
fn shutdown(&mut self, how: Shutdown) -> io::Result<()>; fn shutdown(&mut self, how: Shutdown) -> io::Result<()>;
@ -274,6 +275,7 @@ impl IoStream for TcpStream {
} }
/// Wrapper for `AsyncRead + AsyncWrite` types
pub(crate) struct WrapperStream<T> where T: AsyncRead + AsyncWrite + 'static { pub(crate) struct WrapperStream<T> where T: AsyncRead + AsyncWrite + 'static {
io: T, io: T,
} }

View File

@ -942,13 +942,13 @@ mod tests {
} }
impl IoStream for Buffer { impl IoStream for Buffer {
fn shutdown(&self, _: Shutdown) -> io::Result<()> { fn shutdown(&mut self, _: Shutdown) -> io::Result<()> {
Ok(()) Ok(())
} }
fn set_nodelay(&self, _: bool) -> io::Result<()> { fn set_nodelay(&mut self, _: bool) -> io::Result<()> {
Ok(()) Ok(())
} }
fn set_linger(&self, _: Option<time::Duration>) -> io::Result<()> { fn set_linger(&mut self, _: Option<time::Duration>) -> io::Result<()> {
Ok(()) Ok(())
} }
} }