mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-12 02:47:15 +00:00
feat(yamux): remove deprecated items
Related: #3647. Pull-Request: #3897.
This commit is contained in:
parent
3165b12c75
commit
3ee1856083
@ -3,7 +3,11 @@
|
||||
- Raise MSRV to 1.65.
|
||||
See [PR 3715].
|
||||
|
||||
- Remove deprecated items.
|
||||
See [PR 3897].
|
||||
|
||||
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
|
||||
[PR 3897]: https://github.com/libp2p/rust-libp2p/pull/3897
|
||||
|
||||
## 0.43.1
|
||||
|
||||
|
@ -40,9 +40,6 @@ use std::{
|
||||
use thiserror::Error;
|
||||
use yamux::ConnectionError;
|
||||
|
||||
#[deprecated(note = "Import the `yamux` module instead and refer to this type as `yamux::Muxer`.")]
|
||||
pub type Yamux<S> = Muxer<S>;
|
||||
|
||||
/// A Yamux connection.
|
||||
pub struct Muxer<S> {
|
||||
/// The [`futures::stream::Stream`] of incoming substreams.
|
||||
@ -113,9 +110,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[deprecated(note = "Use `Result<T, yamux::Error>` instead.")]
|
||||
pub type YamuxResult<T> = Result<T, Error>;
|
||||
|
||||
impl<S> StreamMuxer for Muxer<S>
|
||||
where
|
||||
S: Stream<Item = Result<yamux::Stream, Error>> + Unpin,
|
||||
@ -200,9 +194,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Config` instead.")]
|
||||
pub type YamuxConfig = Config;
|
||||
|
||||
/// The yamux configuration.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Config {
|
||||
@ -250,11 +241,6 @@ impl WindowUpdateMode {
|
||||
}
|
||||
}
|
||||
|
||||
#[deprecated(
|
||||
note = "Import the `yamux` module and refer to this type as `yamux::LocalConfig` instead."
|
||||
)]
|
||||
pub type YamuxLocalConfig = LocalConfig;
|
||||
|
||||
/// The yamux configuration for upgrading I/O resources which are ![`Send`].
|
||||
#[derive(Clone)]
|
||||
pub struct LocalConfig(Config);
|
||||
@ -396,9 +382,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[deprecated(note = "Import the `yamux` module and refer to this type as `yamux::Error` instead.")]
|
||||
pub type YamuxError = Error;
|
||||
|
||||
/// The Yamux [`StreamMuxer`] error type.
|
||||
#[derive(Debug, Error)]
|
||||
#[error("yamux error: {0}")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user