mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 18:41:22 +00:00
*: Remove inject_connected
/ inject_disconnected
from docs (#2805)
This commit is contained in:
@ -205,8 +205,7 @@ pub trait NetworkBehaviour: 'static {
|
||||
/// Informs the behaviour about a closed connection to a peer.
|
||||
///
|
||||
/// A call to this method is always paired with an earlier call to
|
||||
/// `inject_connection_established` with the same peer ID, connection ID and
|
||||
/// endpoint.
|
||||
/// [`NetworkBehaviour::inject_connection_established`] with the same peer ID, connection ID and endpoint.
|
||||
fn inject_connection_closed(
|
||||
&mut self,
|
||||
_: &PeerId,
|
||||
@ -230,8 +229,8 @@ pub trait NetworkBehaviour: 'static {
|
||||
/// Informs the behaviour about an event generated by the handler dedicated to the peer identified by `peer_id`.
|
||||
/// for the behaviour.
|
||||
///
|
||||
/// The `peer_id` is guaranteed to be in a connected state. In other words, `inject_connected`
|
||||
/// has previously been called with this `PeerId`.
|
||||
/// The `peer_id` is guaranteed to be in a connected state. In other words,
|
||||
/// [`NetworkBehaviour::inject_connection_established`] has previously been called with this `PeerId`.
|
||||
fn inject_event(
|
||||
&mut self,
|
||||
peer_id: PeerId,
|
||||
|
Reference in New Issue
Block a user