pub struct MiddlewareInFlightReq {
pub amount: Option<i64>,
pub source_criterion: Option<MiddlewareInFlightReqSourceCriterion>,
}
Expand description
InFlightReq holds the in-flight request middleware configuration. This middleware limits the number of requests being processed and served concurrently. More info: https://doc.traefik.io/traefik/v3.3/middlewares/http/inflightreq/
Fields§
§amount: Option<i64>
Amount defines the maximum amount of allowed simultaneous in-flight request. The middleware responds with HTTP 429 Too Many Requests if there are already amount requests in progress (based on the same sourceCriterion strategy).
source_criterion: Option<MiddlewareInFlightReqSourceCriterion>
SourceCriterion defines what criterion is used to group requests as originating from a common source. If several strategies are defined at the same time, an error will be raised. If none are set, the default is to use the requestHost. More info: https://doc.traefik.io/traefik/v3.3/middlewares/http/inflightreq/#sourcecriterion
Implementations§
Trait Implementations§
Source§impl Clone for MiddlewareInFlightReq
impl Clone for MiddlewareInFlightReq
Source§fn clone(&self) -> MiddlewareInFlightReq
fn clone(&self) -> MiddlewareInFlightReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MiddlewareInFlightReq
impl Debug for MiddlewareInFlightReq
Source§impl Default for MiddlewareInFlightReq
impl Default for MiddlewareInFlightReq
Source§fn default() -> MiddlewareInFlightReq
fn default() -> MiddlewareInFlightReq
Source§impl<'de> Deserialize<'de> for MiddlewareInFlightReq
impl<'de> Deserialize<'de> for MiddlewareInFlightReq
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MiddlewareInFlightReq
impl JsonSchema for MiddlewareInFlightReq
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for MiddlewareInFlightReq
impl PartialEq for MiddlewareInFlightReq
Source§impl Serialize for MiddlewareInFlightReq
impl Serialize for MiddlewareInFlightReq
impl StructuralPartialEq for MiddlewareInFlightReq
Auto Trait Implementations§
impl Freeze for MiddlewareInFlightReq
impl RefUnwindSafe for MiddlewareInFlightReq
impl Send for MiddlewareInFlightReq
impl Sync for MiddlewareInFlightReq
impl Unpin for MiddlewareInFlightReq
impl UnwindSafe for MiddlewareInFlightReq
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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