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
31
32
33
34
35
36
//! Peer connection handling.

mod client;
mod connection;
mod connector;
mod error;
mod handshake;
mod load_tracked_client;
mod minimum_peer_version;
mod priority;

#[cfg(any(test, feature = "proptest-impl"))]
#[allow(unused_imports)]
pub use client::tests::ClientTestHarness;

#[cfg(test)]
pub(crate) use client::tests::ReceiveRequestAttempt;
#[cfg(test)]
pub(crate) use handshake::register_inventory_status;

use client::{ClientRequestReceiver, InProgressClientRequest, MustUseClientResponseSender};

pub(crate) use client::{CancelHeartbeatTask, ClientRequest};

pub use client::Client;
pub use connection::Connection;
pub use connector::{Connector, OutboundConnectorRequest};
pub use error::{ErrorSlot, HandshakeError, PeerError, SharedPeerError};
pub use handshake::{ConnectedAddr, ConnectionInfo, Handshake, HandshakeRequest};
pub use load_tracked_client::LoadTrackedClient;
pub use minimum_peer_version::MinimumPeerVersion;
#[allow(unused_imports)]
pub use priority::{
    address_is_valid_for_inbound_listeners, address_is_valid_for_outbound_connections,
    AttributePreference, PeerPreference,
};