1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00: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)
* Server multi-threading
* Gracefull shutdown support
## 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 {
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 {
io: T,
}

View file

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