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 mockingClient
instances.
Structs§
- Cancel
Heartbeat Task - A signal sent by the
Client
half of a peer connection, to cancel aClient
’s heartbeat task. - Client
- The “client” duplex half of a peer connection.
- Client
Request 🔒 - A message from the
peer::Client
to thepeer::Server
. - Client
Request 🔒Receiver - A receiver for the
peer::Server
, which wraps ampsc::Receiver
, convertingClientRequest
s intoInProgressClientRequest
s. - InProgress
Client 🔒Request - A message from the
peer::Client
to thepeer::Server
, after it has been received by thepeer::Server
. - Missing
Inventory 🔒Collector - Forwards missing inventory in the response to the inventory registry.
- Must
UseClient 🔒Response Sender - A
oneshot::Sender
for client responses, that must be used by callingsend()
. Also handles forwarding missing inventory to the inventory registry.