pub struct PerfLimits {
pub max_inflight: usize,
pub max_queue: usize,
pub sendfile_threshold_bytes: u64,
}Available on crate feature
high-perf only.Expand description
Fields§
§max_inflight: usizeMaximum number of concurrently processed connections.
max_queue: usizeMaximum number of queued connections waiting for a slot.
sendfile_threshold_bytes: u64Minimum file size (bytes) for sendfile fast-path attempts.
Trait Implementations§
Source§impl Clone for PerfLimits
impl Clone for PerfLimits
Source§fn clone(&self) -> PerfLimits
fn clone(&self) -> PerfLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfLimits
impl Debug for PerfLimits
Source§impl Default for PerfLimits
impl Default for PerfLimits
impl Copy for PerfLimits
Auto Trait Implementations§
impl Freeze for PerfLimits
impl RefUnwindSafe for PerfLimits
impl Send for PerfLimits
impl Sync for PerfLimits
impl Unpin for PerfLimits
impl UnsafeUnpin for PerfLimits
impl UnwindSafe for PerfLimits
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