Crate request_response
source ·Expand description
This crate contains a general request-response protocol. It is used to send requests to a set of recipients and wait for responses.
Modules§
- The data source trait. Is what we use to derive the response data for a request This file contains the
DataSource
trait. This trait allows the [RequestResponseProtocol
] to calculate/derive a response for a specific request. In the confirmation layer the implementer would be something like a [FeeMerkleTree
] for fee catchup - The message type. Is the base type for all messages in the request-response protocol
- The recipient source trait. Is what we use to get the recipients that a specific message should expect responses from
- util 🔒Utility types and functions
Structs§
- An active request. This is what we use to track a request and its corresponding response in the protocol
- The inner implementation of an active request
- A protocol that allows for request-response communication. Is cheaply cloneable, so there is no need to wrap it in an
Arc
- The underlying configuration for the request-response protocol
- Builder for
RequestResponseConfig
. - The inner implementation for the request-response protocol
Enums§
- The errors that can occur when making a request for data
- Error type for RequestResponseConfigBuilder
Traits§
Type Aliases§
- A type alias for the active request map
- A type alias for the list of tasks that are validating incoming responses
- A type alias for the list of tasks that are responding to requests
- A type alias for the hash of a request