Module client

Source
Expand description

Handles outbound requests from our node to the network.

Modules§

tests
Tests for the Client part of peer connections, and some test utilities for mocking Client instances.

Structs§

CancelHeartbeatTask
A signal sent by the Client half of a peer connection, to cancel a Client’s heartbeat task.
Client
The “client” duplex half of a peer connection.
ClientRequest 🔒
A message from the peer::Client to the peer::Server.
ClientRequestReceiver 🔒
A receiver for the peer::Server, which wraps a mpsc::Receiver, converting ClientRequests into InProgressClientRequests.
InProgressClientRequest 🔒
A message from the peer::Client to the peer::Server, after it has been received by the peer::Server.
MissingInventoryCollector 🔒
Forwards missing inventory in the response to the inventory registry.
MustUseClientResponseSender 🔒
A oneshot::Sender for client responses, that must be used by calling send(). Also handles forwarding missing inventory to the inventory registry.