aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/lib.rs
blob: 3cf1e7cfc53a64455d4e7d8b014383d8e081c295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mod backend;
mod config;
mod connection;
mod connector;
mod discovery;
mod error;
mod io_codec;
mod listener;
mod message;
mod peer;
mod peer_pool;
mod protocols;
mod routing_table;
mod slots;
mod utils;

/// Responsible for network and system monitoring.
/// [`Read More`](./monitor/struct.Monitor.html)
pub mod monitor;
/// Defines the protocol trait.
/// [`Read More`](./protocol/trait.Protocol.html)
pub mod protocol;

pub use backend::{ArcBackend, Backend};
pub use config::Config;
pub use error::Error as P2pError;
pub use peer::{ArcPeer, PeerID};
pub use utils::Version;

use error::{Error, Result};