#[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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more