mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-22 07:31:20 +00:00
feat(swarm): remove deprecated NetworkBehaviourAction
type
Pull-Request: #3919.
This commit is contained in:
parent
6e36e8aa35
commit
38c08049e2
@ -47,17 +47,21 @@
|
|||||||
|
|
||||||
- Rename `NetworkBehaviour::OutEvent` to `NetworkBehaviour::ToSwarm`, `ConnectionHandler::InEvent` to `ConnectionHandler::FromBehaviour`, `ConnectionHandler::OutEvent` to `ConnectionHandler::ToBehaviour`. See [PR 3848].
|
- Rename `NetworkBehaviour::OutEvent` to `NetworkBehaviour::ToSwarm`, `ConnectionHandler::InEvent` to `ConnectionHandler::FromBehaviour`, `ConnectionHandler::OutEvent` to `ConnectionHandler::ToBehaviour`. See [PR 3848].
|
||||||
|
|
||||||
|
- Remove deprecated `NetworkBehaviourAction` type.
|
||||||
|
See [PR 3919].
|
||||||
|
|
||||||
[PR 3605]: https://github.com/libp2p/rust-libp2p/pull/3605
|
[PR 3605]: https://github.com/libp2p/rust-libp2p/pull/3605
|
||||||
[PR 3651]: https://github.com/libp2p/rust-libp2p/pull/3651
|
[PR 3651]: https://github.com/libp2p/rust-libp2p/pull/3651
|
||||||
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
|
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
|
||||||
[PR 3746]: https://github.com/libp2p/rust-libp2p/pull/3746
|
[PR 3746]: https://github.com/libp2p/rust-libp2p/pull/3746
|
||||||
|
[PR 3848]: https://github.com/libp2p/rust-libp2p/pull/3848
|
||||||
[PR 3865]: https://github.com/libp2p/rust-libp2p/pull/3865
|
[PR 3865]: https://github.com/libp2p/rust-libp2p/pull/3865
|
||||||
[PR 3882]: https://github.com/libp2p/rust-libp2p/pull/3882
|
[PR 3882]: https://github.com/libp2p/rust-libp2p/pull/3882
|
||||||
[PR 3884]: https://github.com/libp2p/rust-libp2p/pull/3884
|
[PR 3884]: https://github.com/libp2p/rust-libp2p/pull/3884
|
||||||
[PR 3885]: https://github.com/libp2p/rust-libp2p/pull/3885
|
[PR 3885]: https://github.com/libp2p/rust-libp2p/pull/3885
|
||||||
[PR 3886]: https://github.com/libp2p/rust-libp2p/pull/3886
|
[PR 3886]: https://github.com/libp2p/rust-libp2p/pull/3886
|
||||||
[PR 3912]: https://github.com/libp2p/rust-libp2p/pull/3912
|
[PR 3912]: https://github.com/libp2p/rust-libp2p/pull/3912
|
||||||
[PR 3848]: https://github.com/libp2p/rust-libp2p/pull/3848
|
[PR 3919]: https://github.com/libp2p/rust-libp2p/pull/3919
|
||||||
|
|
||||||
## 0.42.2
|
## 0.42.2
|
||||||
|
|
||||||
|
@ -257,9 +257,6 @@ pub trait PollParameters {
|
|||||||
fn local_peer_id(&self) -> &PeerId;
|
fn local_peer_id(&self) -> &PeerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(note = "Use `ToSwarm` instead.")]
|
|
||||||
pub type NetworkBehaviourAction<TOutEvent, TInEvent> = ToSwarm<TOutEvent, TInEvent>;
|
|
||||||
|
|
||||||
/// A command issued from a [`NetworkBehaviour`] for the [`Swarm`].
|
/// A command issued from a [`NetworkBehaviour`] for the [`Swarm`].
|
||||||
///
|
///
|
||||||
/// [`Swarm`]: super::Swarm
|
/// [`Swarm`]: super::Swarm
|
||||||
|
@ -92,8 +92,6 @@ pub mod derive_prelude {
|
|||||||
pub use crate::ConnectionHandlerSelect;
|
pub use crate::ConnectionHandlerSelect;
|
||||||
pub use crate::DialError;
|
pub use crate::DialError;
|
||||||
pub use crate::NetworkBehaviour;
|
pub use crate::NetworkBehaviour;
|
||||||
#[allow(deprecated)]
|
|
||||||
pub use crate::NetworkBehaviourAction;
|
|
||||||
pub use crate::PollParameters;
|
pub use crate::PollParameters;
|
||||||
pub use crate::THandler;
|
pub use crate::THandler;
|
||||||
pub use crate::THandlerInEvent;
|
pub use crate::THandlerInEvent;
|
||||||
@ -108,8 +106,6 @@ pub mod derive_prelude {
|
|||||||
pub use libp2p_identity::PeerId;
|
pub use libp2p_identity::PeerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(deprecated)]
|
|
||||||
pub use behaviour::NetworkBehaviourAction;
|
|
||||||
pub use behaviour::{
|
pub use behaviour::{
|
||||||
AddressChange, CloseConnection, ConnectionClosed, DialFailure, ExpiredExternalAddr,
|
AddressChange, CloseConnection, ConnectionClosed, DialFailure, ExpiredExternalAddr,
|
||||||
ExpiredListenAddr, ExternalAddresses, FromSwarm, ListenAddresses, ListenFailure,
|
ExpiredListenAddr, ExternalAddresses, FromSwarm, ListenAddresses, ListenFailure,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user