Expand description
This module provides the networking capabilities for the application.
It is responsible for building the libp2p transport and defining the
network behaviours for chat, discovery, and mailboxes.
Re-exports§
pub use chat::ChatBehaviour;pub use discovery::DiscoveryBehaviour;pub use mailbox::MailboxBehaviour;
Modules§
- chat
- This module defines the codec for the chat protocol, which is used for sending and receiving chat messages over the network.
- discovery
- This module defines the peer discovery mechanism for the network.
- mailbox
- This module defines the codec for the mailbox protocol, which is used for interacting with mailbox nodes.
Functions§
- build_
transport - Builds the
libp2ptransport.