Remove most struct level bounds on handshake types (#182)

This commit is contained in:
Carl Lerche
2017-12-13 22:49:07 -06:00
committed by GitHub
parent 9378846da8
commit a437d46bee
2 changed files with 9 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ use std::{convert, fmt, mem};
/// In progress H2 connection binding
#[must_use = "futures do nothing unless polled"]
pub struct Handshake<T: AsyncRead + AsyncWrite, B: IntoBuf = Bytes> {
pub struct Handshake<T, B: IntoBuf = Bytes> {
/// SETTINGS frame that will be sent once the connection is established.
settings: Settings,
/// The current state of the handshake.