1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 14:30:36 +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

@ -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,