pub struct ServerLimitsConfigBuilder { /* private fields */ }Expand description
Builder for ServerLimitsConfig.
Implementations§
Source§impl ServerLimitsConfigBuilder
impl ServerLimitsConfigBuilder
Sourcepub fn max_request_size(self, max_request_size: impl Into<String>) -> Self
pub fn max_request_size(self, max_request_size: impl Into<String>) -> Self
Sets the maximum request body size (e.g. "10MB").
Sourcepub fn request_timeout(self, request_timeout: impl Into<String>) -> Self
pub fn request_timeout(self, request_timeout: impl Into<String>) -> Self
Sets the maximum request processing time (e.g. "30s").
Sourcepub const fn max_concurrent_requests(
self,
max_concurrent_requests: usize,
) -> Self
pub const fn max_concurrent_requests( self, max_concurrent_requests: usize, ) -> Self
Sets the maximum number of concurrent requests.
Sourcepub const fn max_queue_depth(self, max_queue_depth: usize) -> Self
pub const fn max_queue_depth(self, max_queue_depth: usize) -> Self
Sets the maximum request queue depth.
Sourcepub fn build(self) -> ServerLimitsConfig
pub fn build(self) -> ServerLimitsConfig
Builds the ServerLimitsConfig.
Trait Implementations§
Source§impl Debug for ServerLimitsConfigBuilder
impl Debug for ServerLimitsConfigBuilder
Auto Trait Implementations§
impl Freeze for ServerLimitsConfigBuilder
impl RefUnwindSafe for ServerLimitsConfigBuilder
impl Send for ServerLimitsConfigBuilder
impl Sync for ServerLimitsConfigBuilder
impl Unpin for ServerLimitsConfigBuilder
impl UnsafeUnpin for ServerLimitsConfigBuilder
impl UnwindSafe for ServerLimitsConfigBuilder
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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