Expand description
This crate provides DapiClient — transport layer for a decentralized API for Dash.
Re-exports§
pub use dump::DumpData;
Modules§
- dump
- Dumping of requests and responses to disk
- mock
- Mock implementation of rs-dapi-client for testing
- transport
- Transport options that DAPI requests use under the hood.
Structs§
- Address
- DAPI address.
- Address
List - A structure to manage DAPI addresses to select from for DapiRequest execution.
- Address
Status - Address status Contains information about the number of bans and the time until the next ban is lifted.
- Connection
Pool - ConnectionPool represents pool of connections to DAPI nodes.
- Dapi
Client - Access point to DAPI.
- Execution
Error - Error happened during request execution.
- Execution
Response - Request execution response.
- Request
Settings - DAPI request settings.
- Uri
- The URI component of a request.
Enums§
- Address
List Error - AddressList errors
- Dapi
Client Error - General DAPI request error type.
Traits§
- CanRetry
- Returns true if the operation can be retried.
- Dapi
Request - A DAPI request could be executed with an initialized DapiClient.
- Dapi
Request Executor - DAPI client executor trait.
- Inner
Into - Convert inner type without losing additional context information of the wrapper.
- Into
Inner - Unwrap wrapped types
- Wrap
ToExecution Result - Convert Result<T,TE> to ExecutionResult<R,E>, taking context from ExecutionResponse.
Functions§
- update_
address_ ban_ status - Ban address in case of retryable error or unban it if it was banned, and the request was successful.
Type Aliases§
- Execution
Result - Result of request execution