1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-09-02 08:26:38 +02:00

update tokio verion and prep alpha3 release

This commit is contained in:
Nikolay Kim
2019-12-07 09:57:43 +06:00
parent 5674840c01
commit cbdbc05dbd
17 changed files with 30 additions and 30 deletions

View File

@@ -21,7 +21,6 @@ path = "src/lib.rs"
bitflags = "1.2.1"
bytes = "0.5.2"
futures = "0.3.1"
pin-project = "0.4.6"
tokio = { version = "0.2.2", default-features=false }
tokio = { version = "0.2.3", default-features=false }
tokio-util = { version = "0.2.0", default-features=false, features=["codec"] }
log = "0.4"

View File

@@ -4,7 +4,6 @@ use std::{fmt, io};
use bytes::{BufMut, BytesMut};
use futures::{ready, Sink, Stream};
use pin_project::pin_project;
use crate::{AsyncRead, AsyncWrite, Decoder, Encoder};
@@ -22,7 +21,6 @@ bitflags::bitflags! {
/// the `Encoder` and `Decoder` traits to encode and decode frames.
///
/// You can create a `Framed` instance by using the `AsyncRead::framed` adapter.
#[pin_project]
pub struct Framed<T, U> {
io: T,
codec: U,
@@ -31,6 +29,8 @@ pub struct Framed<T, U> {
write_buf: BytesMut,
}
impl<T, U> Unpin for Framed<T, U> {}
impl<T, U> Framed<T, U>
where
T: AsyncRead + AsyncWrite,