Skip to content

Commit e89b51f

Browse files
type alias
1 parent c59d315 commit e89b51f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/transport/async_channel.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,12 @@ impl<In: RpcMessage, Out: RpcMessage> Future for OpenBiFuture<In, Out> {
179179
}
180180
}
181181

182+
type AcceptBiFutureBox<In, Out> =
183+
Pin<Box<dyn Future<Output = Option<(SendSink<In>, RecvStream<Out>)>> + Send + 'static>>;
184+
182185
/// Future returned by [MpscServerEndpoint::accept_bi]
183186
pub struct AcceptBiFuture<In: RpcMessage, Out: RpcMessage> {
184-
wrapped:
185-
Pin<Box<dyn Future<Output = Option<(SendSink<Out>, RecvStream<In>)>> + Send + 'static>>,
187+
wrapped: AcceptBiFutureBox<Out, In>,
186188
_p: PhantomData<(In, Out)>,
187189
}
188190

0 commit comments

Comments
 (0)