pub struct RequestLimits {
pub max_pending: usize,
pub manual_response_grace: Duration,
}Expand description
Request registration capacity and manual processing grace configuration of received responses.
Fields§
§max_pending: usizeMaximum number of requests that may be registered and unfinished at one time; the default is 4,096.
manual_response_grace: DurationProcessing grace reserved for responses received in time but not yet manually parsed, default 2 seconds; zero means no wait.
Grace does not extend the absolute deadline of the request and is also used to wait for the response callback to drain when the connection is terminated.
Implementations§
Trait Implementations§
Source§impl Clone for RequestLimits
impl Clone for RequestLimits
Source§impl Debug for RequestLimits
impl Debug for RequestLimits
Auto Trait Implementations§
impl Forget for RequestLimits
impl Freeze for RequestLimits
impl Move for RequestLimits
impl RefUnwindSafe for RequestLimits
impl Send for RequestLimits
impl Sync for RequestLimits
impl Unpin for RequestLimits
impl UnsafeUnpin for RequestLimits
impl UnwindSafe for RequestLimits
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