You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This removes the deprecated `IntoConnectionHandler` trait and all its implementations. Consequently, `NetworkBehaviour::new_handler` and `NetworkBehaviour::addresses_of_peer` are now gone and the two `handle_` functions are now required to implement.
Related: #3647.
Pull-Request: #3884.
Copy file name to clipboardExpand all lines: protocols/rendezvous/src/client.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ pub struct Behaviour {
47
47
48
48
/// Hold addresses of all peers that we have discovered so far.
49
49
///
50
-
/// Storing these internally allows us to assist the [`libp2p_swarm::Swarm`] in dialing by returning addresses from [`NetworkBehaviour::addresses_of_peer`].
50
+
/// Storing these internally allows us to assist the [`libp2p_swarm::Swarm`] in dialing by returning addresses from [`NetworkBehaviour::handle_pending_outbound_connection`].
/// and the behaviour can send a message to the handler by making [`NetworkBehaviour::poll`]
144
-
/// return [`ToSwarm::NotifyHandler`].
145
-
///
146
-
/// Note that the handler is returned to the [`NetworkBehaviour`] on connection failure and
147
-
/// connection closing.
148
-
#[deprecated(
149
-
since = "0.42.0",
150
-
note = "Use one or more of `NetworkBehaviour::{handle_pending_inbound_connection,handle_established_inbound_connection,handle_pending_outbound_connection,handle_established_outbound_connection}` instead."
/// A handler for a set of protocols used on a connection with a remote.
63
62
///
@@ -510,52 +509,6 @@ where
510
509
}
511
510
}
512
511
513
-
/// Prototype for a [`ConnectionHandler`].
514
-
#[deprecated(
515
-
note = "Implement `ConnectionHandler` directly and use `NetworkBehaviour::{handle_pending_inbound_connection,handle_pending_outbound_connection}` to handle pending connections."
516
-
)]
517
-
pubtraitIntoConnectionHandler:Send + 'static{
518
-
/// The protocols handler.
519
-
typeHandler:ConnectionHandler;
520
-
521
-
/// Builds the protocols handler.
522
-
///
523
-
/// The `PeerId` is the id of the node the handler is going to handle.
0 commit comments