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:
-
Build the request.
-
Forward the request to [
crate::request_responses::RequestResponsesBehaviour
] viaOutEvent::SendRequest
. -
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.
Error returned by LightClientRequestSender::request
.