Module sc_network::light_client_requests::sender
source · [−]Expand description
For outgoing light client requests. Helper for outgoing light client requests.
Call [LightClientRequestSender::send_request
] to send out light client requests. It will:
-
Build the request.
-
Forward the request to [
crate::request_responses::RequestResponsesBehaviour
] via [OutEvent::SendRequest
]. -
Wait for the response and forward the response via the [
oneshot::Sender
] provided earlier with [LightClientRequestSender::send_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
.