mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
update changelog
This commit is contained in:
parent
9559f6a175
commit
fdf7726831
@ -15,6 +15,10 @@
|
||||
|
||||
* Content compression/decompression (br, gzip, deflate)
|
||||
|
||||
* Server multi-threading
|
||||
|
||||
* Gracefull shutdown support
|
||||
|
||||
|
||||
## 0.2.1 (2017-11-03)
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user