p2p_chat/network/mod.rs
1//! This module contains the networking layer of the application.
2//!
3//! It is responsible for creating and managing the `libp2p` `Swarm`, and for
4//! handling all network events and commands.
5mod behaviour;
6mod commands;
7mod handle;
8mod handlers;
9mod layer;
10mod message;
11
12pub use behaviour::P2PBehaviourEvent;
13pub use handle::NetworkHandle;
14pub use layer::NetworkLayer;
15pub use message::{NetworkCommand, NetworkResponse};