#[non_exhaustive]pub struct Config {
pub max_in_flight_requests: usize,
pub pending_request_buffer: usize,
}
Expand description
Settings that control the behavior of the client.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_in_flight_requests: usize
The number of requests that can be in flight at once.
max_in_flight_requests
controls the size of the map used by the client
for storing pending requests.
pending_request_buffer: usize
The number of requests that can be buffered client-side before being sent.
pending_requests_buffer
controls the size of the channel clients use
to communicate with the request dispatch task.