pub struct LimitedPriorityLevelConfiguration {
pub assured_concurrency_shares: Option<i32>,
pub limit_response: Option<LimitResponse>,
}
Expand description
LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:
- How are requests for this priority level limited?
- What should be done with requests that exceed the limit?
Fields
assuredConcurrencyShares
(ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server’s concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) — the number of requests that may be executing at a time — for each such priority level:
ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )
bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.
limit_response: Option<LimitResponse>
limitResponse
indicates what to do with requests that can not be executed right now
Trait Implementations
sourceimpl Clone for LimitedPriorityLevelConfiguration
impl Clone for LimitedPriorityLevelConfiguration
sourcefn clone(&self) -> LimitedPriorityLevelConfiguration
fn clone(&self) -> LimitedPriorityLevelConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for LimitedPriorityLevelConfiguration
impl Default for LimitedPriorityLevelConfiguration
sourcefn default() -> LimitedPriorityLevelConfiguration
fn default() -> LimitedPriorityLevelConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LimitedPriorityLevelConfiguration
impl<'de> Deserialize<'de> for LimitedPriorityLevelConfiguration
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<LimitedPriorityLevelConfiguration> for LimitedPriorityLevelConfiguration
impl PartialEq<LimitedPriorityLevelConfiguration> for LimitedPriorityLevelConfiguration
sourcefn eq(&self, other: &LimitedPriorityLevelConfiguration) -> bool
fn eq(&self, other: &LimitedPriorityLevelConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LimitedPriorityLevelConfiguration) -> bool
fn ne(&self, other: &LimitedPriorityLevelConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for LimitedPriorityLevelConfiguration
Auto Trait Implementations
impl RefUnwindSafe for LimitedPriorityLevelConfiguration
impl Send for LimitedPriorityLevelConfiguration
impl Sync for LimitedPriorityLevelConfiguration
impl Unpin for LimitedPriorityLevelConfiguration
impl UnwindSafe for LimitedPriorityLevelConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more