mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-15 02:51:25 +00:00
Documentation updates (#1005)
* Documentation updates: * libp2p: Update the top-level module documentation, already including intra-rustdoc links, removing outdated documentation, updating examples and polishing the text. * libp2p-core: Update the transport documentation to clarify that a `Transport` is really an abstraction only for connection-oriented transports. * More links * Fix typo. * Address review comments. * More doc tweaks. * Mention the necessity of creating an identity keypair. * Remove another mention of the removed Topology trait.
This commit is contained in:
@ -42,8 +42,6 @@
|
||||
//! - Use the `NetworkBehaviour` trait to customize the behaviour of a `Swarm`. It is the
|
||||
//! `NetworkBehaviour` that controls what happens on the network. Multiple types that implement
|
||||
//! `NetworkBehaviour` can be composed into a single behaviour.
|
||||
//! - The `Topology` trait is implemented for types that hold the layout of a network. When other
|
||||
//! components need the network layout to operate, they are passed an instance of a `Topology`.
|
||||
//! - The `StreamMuxer` trait is implemented on structs that hold a connection to a remote and can
|
||||
//! subdivide this connection into multiple substreams. See the `muxing` module.
|
||||
//! - The `UpgradeInfo`, `InboundUpgrade` and `OutboundUpgrade` traits define how to upgrade each
|
||||
@ -58,8 +56,7 @@
|
||||
//!
|
||||
//! - The low-level APIs are contained within the `nodes` module. See the documentation for more
|
||||
//! information.
|
||||
//! - The high-level APIs include the concepts of `Swarm`, `ProtocolsHandler`, `NetworkBehaviour`
|
||||
//! and `Topology`.
|
||||
//! - The high-level APIs include the concepts of `Swarm`, `ProtocolsHandler` and `NetworkBehaviour`.
|
||||
|
||||
|
||||
/// Multi-address re-export.
|
||||
|
Reference in New Issue
Block a user