mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 16:51:34 +00:00
protocols/: Add documentation on peer discovery (#2465)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -26,6 +26,13 @@
|
||||
//! At least one identification request is sent on a newly established
|
||||
//! connection, beyond which the behaviour does not keep connections alive.
|
||||
//!
|
||||
//! # Important Discrepancies
|
||||
//!
|
||||
//! - **Using Identify with other protocols** Unlike some other libp2p implementations,
|
||||
//! rust-libp2p does not treat Identify as a core protocol. This means that other protocols cannot
|
||||
//! rely upon the existence of Identify, and need to be manually hooked up to Identify in order to
|
||||
//! make use of its capabilities.
|
||||
//!
|
||||
//! # Usage
|
||||
//!
|
||||
//! The [`Identify`] struct implements a `NetworkBehaviour` that negotiates
|
||||
|
Reference in New Issue
Block a user