mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 00:41:59 +00:00
core/muxer: Deprecate StreamMuxerExt::next_{inbound,outbound}
(#3002)
This commit is contained in:
@@ -160,11 +160,19 @@ pub trait StreamMuxerExt: StreamMuxer + Sized {
|
||||
}
|
||||
|
||||
/// Returns a future that resolves to the next inbound `Substream` opened by the remote.
|
||||
#[deprecated(
|
||||
since = "0.37.0",
|
||||
note = "This future violates the `StreamMuxer` contract because it doesn't call `StreamMuxer::poll`."
|
||||
)]
|
||||
fn next_inbound(&mut self) -> NextInbound<'_, Self> {
|
||||
NextInbound(self)
|
||||
}
|
||||
|
||||
/// Returns a future that opens a new outbound `Substream` with the remote.
|
||||
#[deprecated(
|
||||
since = "0.37.0",
|
||||
note = "This future violates the `StreamMuxer` contract because it doesn't call `StreamMuxer::poll`."
|
||||
)]
|
||||
fn next_outbound(&mut self) -> NextOutbound<'_, Self> {
|
||||
NextOutbound(self)
|
||||
}
|
||||
|
Reference in New Issue
Block a user