Module sc_network::light_client_requests::sender[][src]

Expand description

For outgoing light client requests. Helper for outgoing light client requests.

Call LightClientRequestSender::request to send out light client requests. It will:

  1. Build the request.

  2. Forward the request to [crate::request_responses::RequestResponsesBehaviour] via OutEvent::SendRequest.

  3. Wait for the response and forward the response via the [futures::channel::oneshot::Sender] provided earlier with [LightClientRequestSender::request](sender::LightClientRequestSender:: request).

Structs

State machine helping to send out light client requests.

Enums

Events returned by LightClientRequestSender.

The possible light client requests we support.

Incoming response from remote.