pub struct Limits {
pub connections: usize,
pub per_uid: usize,
pub idle: Duration,
pub line: Duration,
pub write: Duration,
pub short_line: usize,
pub long_line: usize,
pub buffered: usize,
}Fields§
§connections: usizeConnections at once, every uid together.
per_uid: usizeConnections at once of one uid.
idle: DurationHow long a connection may send nothing.
line: DurationHow long a line may take, from its first byte to its newline.
write: DurationHow long a response may take to be read.
short_line: usizeA line past this must be of a method that may send more.
long_line: usize§buffered: usizeBytes of long lines held in memory at once, every connection together.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more