mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 16:51:34 +00:00
More work
This commit is contained in:
@ -50,9 +50,7 @@ where
|
||||
impl<C, A, B, TA, TB, EA, EB> InboundUpgrade<C> for EitherUpgrade<A, B>
|
||||
where
|
||||
A: InboundUpgrade<C, Output = TA, Error = EA>,
|
||||
<A as InboundUpgrade<C>>::Future: Unpin,
|
||||
B: InboundUpgrade<C, Output = TB, Error = EB>,
|
||||
<B as InboundUpgrade<C>>::Future: Unpin,
|
||||
{
|
||||
type Output = EitherOutput<TA, TB>;
|
||||
type Error = EitherError<EA, EB>;
|
||||
@ -70,9 +68,7 @@ where
|
||||
impl<C, A, B, TA, TB, EA, EB> OutboundUpgrade<C> for EitherUpgrade<A, B>
|
||||
where
|
||||
A: OutboundUpgrade<C, Output = TA, Error = EA>,
|
||||
<A as OutboundUpgrade<C>>::Future: Unpin,
|
||||
B: OutboundUpgrade<C, Output = TB, Error = EB>,
|
||||
<B as OutboundUpgrade<C>>::Future: Unpin,
|
||||
{
|
||||
type Output = EitherOutput<TA, TB>;
|
||||
type Error = EitherError<EA, EB>;
|
||||
|
@ -76,9 +76,7 @@ where
|
||||
impl<C, A, B, TA, TB, EA, EB> OutboundUpgrade<C> for SelectUpgrade<A, B>
|
||||
where
|
||||
A: OutboundUpgrade<C, Output = TA, Error = EA>,
|
||||
<A as OutboundUpgrade<C>>::Future: Unpin,
|
||||
B: OutboundUpgrade<C, Output = TB, Error = EB>,
|
||||
<B as OutboundUpgrade<C>>::Future: Unpin,
|
||||
{
|
||||
type Output = EitherOutput<TA, TB>;
|
||||
type Error = EitherError<EA, EB>;
|
||||
|
Reference in New Issue
Block a user