mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-12 10:57:13 +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.
|
- Raise MSRV to 1.65.
|
||||||
See [PR 3715].
|
See [PR 3715].
|
||||||
|
|
||||||
|
- Remove deprecated items.
|
||||||
|
See [PR 3897].
|
||||||
|
|
||||||
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
|
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
|
||||||
|
[PR 3897]: https://github.com/libp2p/rust-libp2p/pull/3897
|
||||||
|
|
||||||
## 0.43.1
|
## 0.43.1
|
||||||
|
|
||||||
|
@ -40,9 +40,6 @@ use std::{
|
|||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
use yamux::ConnectionError;
|
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.
|
/// A Yamux connection.
|
||||||
pub struct Muxer<S> {
|
pub struct Muxer<S> {
|
||||||
/// The [`futures::stream::Stream`] of incoming substreams.
|
/// 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>
|
impl<S> StreamMuxer for Muxer<S>
|
||||||
where
|
where
|
||||||
S: Stream<Item = Result<yamux::Stream, Error>> + Unpin,
|
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.
|
/// The yamux configuration.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Config {
|
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`].
|
/// The yamux configuration for upgrading I/O resources which are ![`Send`].
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct LocalConfig(Config);
|
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.
|
/// The Yamux [`StreamMuxer`] error type.
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
#[error("yamux error: {0}")]
|
#[error("yamux error: {0}")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user