pub struct ConcurrencyLimitConfig {
pub max_concurrent: usize,
pub retry_after_secs: u64,
}Expand description
Configuration for RequestConcurrencyLimit.
Fields§
§max_concurrent: usizeMaximum number of requests allowed in flight at once, across all Actix workers.
retry_after_secs: u64Value advertised in the Retry-After header when shedding a request.
Trait Implementations§
Source§impl Clone for ConcurrencyLimitConfig
impl Clone for ConcurrencyLimitConfig
Source§fn clone(&self) -> ConcurrencyLimitConfig
fn clone(&self) -> ConcurrencyLimitConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConcurrencyLimitConfig
Source§impl Debug for ConcurrencyLimitConfig
impl Debug for ConcurrencyLimitConfig
Auto Trait Implementations§
impl Freeze for ConcurrencyLimitConfig
impl RefUnwindSafe for ConcurrencyLimitConfig
impl Send for ConcurrencyLimitConfig
impl Sync for ConcurrencyLimitConfig
impl Unpin for ConcurrencyLimitConfig
impl UnsafeUnpin for ConcurrencyLimitConfig
impl UnwindSafe for ConcurrencyLimitConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.