@@ -128,23 +128,14 @@ where
128128/// A `Future` returned by [`dialer_select_proto_serial`] which negotiates
129129/// a protocol iteratively by considering one protocol after the other.
130130#[ pin_project:: pin_project]
131- pub struct DialerSelectSeq < R , I >
132- where
133- R : AsyncRead + AsyncWrite ,
134- I : Iterator ,
135- I :: Item : AsRef < [ u8 ] >
136- {
131+ pub struct DialerSelectSeq < R , I : Iterator > {
137132 // TODO: It would be nice if eventually N = I::Item = Protocol.
138133 protocols : iter:: Peekable < I > ,
139134 state : SeqState < R , I :: Item > ,
140135 version : Version ,
141136}
142137
143- enum SeqState < R , N >
144- where
145- R : AsyncRead + AsyncWrite ,
146- N : AsRef < [ u8 ] >
147- {
138+ enum SeqState < R , N > {
148139 SendHeader { io : MessageIO < R > , } ,
149140 SendProtocol { io : MessageIO < R > , protocol : N } ,
150141 FlushProtocol { io : MessageIO < R > , protocol : N } ,
@@ -274,22 +265,13 @@ where
274265/// a protocol selectively by considering all supported protocols of the remote
275266/// "in parallel".
276267#[ pin_project:: pin_project]
277- pub struct DialerSelectPar < R , I >
278- where
279- R : AsyncRead + AsyncWrite ,
280- I : Iterator ,
281- I :: Item : AsRef < [ u8 ] >
282- {
268+ pub struct DialerSelectPar < R , I : Iterator > {
283269 protocols : I ,
284270 state : ParState < R , I :: Item > ,
285271 version : Version ,
286272}
287273
288- enum ParState < R , N >
289- where
290- R : AsyncRead + AsyncWrite ,
291- N : AsRef < [ u8 ] >
292- {
274+ enum ParState < R , N > {
293275 SendHeader { io : MessageIO < R > } ,
294276 SendProtocolsRequest { io : MessageIO < R > } ,
295277 Flush { io : MessageIO < R > } ,
0 commit comments