@@ -30,8 +30,8 @@ use crate::{
3030 TransportError , TransportEvent ,
3131 } ,
3232 upgrade:: {
33- self , apply_inbound, apply_outbound, InboundUpgrade , InboundUpgradeApply , OutboundUpgrade ,
34- OutboundUpgradeApply , UpgradeError ,
33+ self , apply_inbound, apply_outbound, InboundConnectionUpgrade , InboundUpgradeApply ,
34+ OutboundConnectionUpgrade , OutboundUpgradeApply , UpgradeError ,
3535 } ,
3636 Negotiated ,
3737} ;
@@ -101,8 +101,8 @@ where
101101 T : Transport < Output = C > ,
102102 C : AsyncRead + AsyncWrite + Unpin ,
103103 D : AsyncRead + AsyncWrite + Unpin ,
104- U : InboundUpgrade < Negotiated < C > , Output = ( PeerId , D ) , Error = E > ,
105- U : OutboundUpgrade < Negotiated < C > , Output = ( PeerId , D ) , Error = E > + Clone ,
104+ U : InboundConnectionUpgrade < Negotiated < C > , Output = ( PeerId , D ) , Error = E > ,
105+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = ( PeerId , D ) , Error = E > + Clone ,
106106 E : Error + ' static ,
107107 {
108108 let version = self . version ;
@@ -123,7 +123,7 @@ where
123123pub struct Authenticate < C , U >
124124where
125125 C : AsyncRead + AsyncWrite + Unpin ,
126- U : InboundUpgrade < Negotiated < C > > + OutboundUpgrade < Negotiated < C > > ,
126+ U : InboundConnectionUpgrade < Negotiated < C > > + OutboundConnectionUpgrade < Negotiated < C > > ,
127127{
128128 #[ pin]
129129 inner : EitherUpgrade < C , U > ,
@@ -132,11 +132,11 @@ where
132132impl < C , U > Future for Authenticate < C , U >
133133where
134134 C : AsyncRead + AsyncWrite + Unpin ,
135- U : InboundUpgrade < Negotiated < C > >
136- + OutboundUpgrade <
135+ U : InboundConnectionUpgrade < Negotiated < C > >
136+ + OutboundConnectionUpgrade <
137137 Negotiated < C > ,
138- Output = <U as InboundUpgrade < Negotiated < C > > >:: Output ,
139- Error = <U as InboundUpgrade < Negotiated < C > > >:: Error ,
138+ Output = <U as InboundConnectionUpgrade < Negotiated < C > > >:: Output ,
139+ Error = <U as InboundConnectionUpgrade < Negotiated < C > > >:: Error ,
140140 > ,
141141{
142142 type Output = <EitherUpgrade < C , U > as Future >:: Output ;
@@ -155,7 +155,7 @@ where
155155pub struct Multiplex < C , U >
156156where
157157 C : AsyncRead + AsyncWrite + Unpin ,
158- U : InboundUpgrade < Negotiated < C > > + OutboundUpgrade < Negotiated < C > > ,
158+ U : InboundConnectionUpgrade < Negotiated < C > > + OutboundConnectionUpgrade < Negotiated < C > > ,
159159{
160160 peer_id : Option < PeerId > ,
161161 #[ pin]
@@ -165,8 +165,8 @@ where
165165impl < C , U , M , E > Future for Multiplex < C , U >
166166where
167167 C : AsyncRead + AsyncWrite + Unpin ,
168- U : InboundUpgrade < Negotiated < C > , Output = M , Error = E > ,
169- U : OutboundUpgrade < Negotiated < C > , Output = M , Error = E > ,
168+ U : InboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > ,
169+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > ,
170170{
171171 type Output = Result < ( PeerId , M ) , UpgradeError < E > > ;
172172
@@ -208,8 +208,8 @@ where
208208 T : Transport < Output = ( PeerId , C ) > ,
209209 C : AsyncRead + AsyncWrite + Unpin ,
210210 D : AsyncRead + AsyncWrite + Unpin ,
211- U : InboundUpgrade < Negotiated < C > , Output = D , Error = E > ,
212- U : OutboundUpgrade < Negotiated < C > , Output = D , Error = E > + Clone ,
211+ U : InboundConnectionUpgrade < Negotiated < C > , Output = D , Error = E > ,
212+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = D , Error = E > + Clone ,
213213 E : Error + ' static ,
214214 {
215215 Authenticated ( Builder :: new (
@@ -236,8 +236,8 @@ where
236236 T : Transport < Output = ( PeerId , C ) > ,
237237 C : AsyncRead + AsyncWrite + Unpin ,
238238 M : StreamMuxer ,
239- U : InboundUpgrade < Negotiated < C > , Output = M , Error = E > ,
240- U : OutboundUpgrade < Negotiated < C > , Output = M , Error = E > + Clone ,
239+ U : InboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > ,
240+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > + Clone ,
241241 E : Error + ' static ,
242242 {
243243 let version = self . 0 . version ;
@@ -269,8 +269,8 @@ where
269269 T : Transport < Output = ( PeerId , C ) > ,
270270 C : AsyncRead + AsyncWrite + Unpin ,
271271 M : StreamMuxer ,
272- U : InboundUpgrade < Negotiated < C > , Output = M , Error = E > ,
273- U : OutboundUpgrade < Negotiated < C > , Output = M , Error = E > + Clone ,
272+ U : InboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > ,
273+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = M , Error = E > + Clone ,
274274 E : Error + ' static ,
275275 F : for < ' a > FnOnce ( & ' a PeerId , & ' a ConnectedPoint ) -> U + Clone ,
276276 {
@@ -395,8 +395,8 @@ where
395395 T : Transport < Output = ( PeerId , C ) > ,
396396 T :: Error : ' static ,
397397 C : AsyncRead + AsyncWrite + Unpin ,
398- U : InboundUpgrade < Negotiated < C > , Output = D , Error = E > ,
399- U : OutboundUpgrade < Negotiated < C > , Output = D , Error = E > + Clone ,
398+ U : InboundConnectionUpgrade < Negotiated < C > , Output = D , Error = E > ,
399+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = D , Error = E > + Clone ,
400400 E : Error + ' static ,
401401{
402402 type Output = ( PeerId , D ) ;
@@ -502,7 +502,7 @@ where
502502/// The [`Transport::Dial`] future of an [`Upgrade`]d transport.
503503pub struct DialUpgradeFuture < F , U , C >
504504where
505- U : OutboundUpgrade < Negotiated < C > > ,
505+ U : OutboundConnectionUpgrade < Negotiated < C > > ,
506506 C : AsyncRead + AsyncWrite + Unpin ,
507507{
508508 future : Pin < Box < F > > ,
@@ -513,7 +513,7 @@ impl<F, U, C, D> Future for DialUpgradeFuture<F, U, C>
513513where
514514 F : TryFuture < Ok = ( PeerId , C ) > ,
515515 C : AsyncRead + AsyncWrite + Unpin ,
516- U : OutboundUpgrade < Negotiated < C > , Output = D > ,
516+ U : OutboundConnectionUpgrade < Negotiated < C > , Output = D > ,
517517 U :: Error : Error ,
518518{
519519 type Output = Result < ( PeerId , D ) , TransportUpgradeError < F :: Error , U :: Error > > ;
@@ -553,7 +553,7 @@ where
553553
554554impl < F , U , C > Unpin for DialUpgradeFuture < F , U , C >
555555where
556- U : OutboundUpgrade < Negotiated < C > > ,
556+ U : OutboundConnectionUpgrade < Negotiated < C > > ,
557557 C : AsyncRead + AsyncWrite + Unpin ,
558558{
559559}
@@ -562,7 +562,7 @@ where
562562pub struct ListenerUpgradeFuture < F , U , C >
563563where
564564 C : AsyncRead + AsyncWrite + Unpin ,
565- U : InboundUpgrade < Negotiated < C > > ,
565+ U : InboundConnectionUpgrade < Negotiated < C > > ,
566566{
567567 future : Pin < Box < F > > ,
568568 upgrade : future:: Either < Option < U > , ( PeerId , InboundUpgradeApply < C , U > ) > ,
@@ -572,7 +572,7 @@ impl<F, U, C, D> Future for ListenerUpgradeFuture<F, U, C>
572572where
573573 F : TryFuture < Ok = ( PeerId , C ) > ,
574574 C : AsyncRead + AsyncWrite + Unpin ,
575- U : InboundUpgrade < Negotiated < C > , Output = D > ,
575+ U : InboundConnectionUpgrade < Negotiated < C > , Output = D > ,
576576 U :: Error : Error ,
577577{
578578 type Output = Result < ( PeerId , D ) , TransportUpgradeError < F :: Error , U :: Error > > ;
@@ -613,6 +613,6 @@ where
613613impl < F , U , C > Unpin for ListenerUpgradeFuture < F , U , C >
614614where
615615 C : AsyncRead + AsyncWrite + Unpin ,
616- U : InboundUpgrade < Negotiated < C > > ,
616+ U : InboundConnectionUpgrade < Negotiated < C > > ,
617617{
618618}
0 commit comments