Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions tokio-util/src/codec/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ pin_project! {
}
}

impl<T, U> Framed<T, U>
where
T: AsyncRead + AsyncWrite,
{
impl<T, U> Framed<T, U> {
/// Provides a [`Stream`] and [`Sink`] interface for reading and writing to this
/// I/O object, using [`Decoder`] and [`Encoder`] to read and write the raw data.
///
Expand Down Expand Up @@ -127,9 +124,7 @@ where
},
}
}
}

impl<T, U> Framed<T, U> {
/// Provides a [`Stream`] and [`Sink`] interface for reading and writing to this
/// I/O object, using [`Decoder`] and [`Encoder`] to read and write the raw data.
///
Expand Down
8 changes: 1 addition & 7 deletions tokio-util/src/codec/framed_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ pin_project! {

// ===== impl FramedRead =====

impl<T, D> FramedRead<T, D>
where
T: AsyncRead,
D: Decoder,
{
impl<T, D> FramedRead<T, D> {
/// Creates a new `FramedRead` with the given `decoder`.
pub fn new(inner: T, decoder: D) -> FramedRead<T, D> {
FramedRead {
Expand Down Expand Up @@ -68,9 +64,7 @@ where
},
}
}
}

impl<T, D> FramedRead<T, D> {
/// Returns a reference to the underlying I/O stream wrapped by
/// `FramedRead`.
///
Expand Down
7 changes: 1 addition & 6 deletions tokio-util/src/codec/framed_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ pin_project! {
}
}

impl<T, E> FramedWrite<T, E>
where
T: AsyncWrite,
{
impl<T, E> FramedWrite<T, E> {
/// Creates a new `FramedWrite` with the given `encoder`.
pub fn new(inner: T, encoder: E) -> FramedWrite<T, E> {
FramedWrite {
Expand All @@ -64,9 +61,7 @@ where
},
}
}
}

impl<T, E> FramedWrite<T, E> {
/// Returns a reference to the underlying I/O stream wrapped by
/// `FramedWrite`.
///
Expand Down