pub struct QueuePolicyConfig {
pub approval_capacity: usize,
pub media_capacity: usize,
pub trigger_event_capacity: usize,
pub warning_ratio: f32,
pub overload_ratio: f32,
pub lanes: QueueLanePoliciesConfig,
pub adaptive_shedding: Option<bool>,
pub fair_trigger_sessions: Option<bool>,
pub fair_trigger_session_window_secs: Option<u64>,
pub fair_trigger_max_events_per_session: Option<u32>,
}Fields§
§approval_capacity: usize§media_capacity: usize§trigger_event_capacity: usize§warning_ratio: f32§overload_ratio: f32§lanes: QueueLanePoliciesConfig§adaptive_shedding: Option<bool>§fair_trigger_sessions: Option<bool>§fair_trigger_session_window_secs: Option<u64>§fair_trigger_max_events_per_session: Option<u32>Implementations§
Source§impl QueuePolicyConfig
impl QueuePolicyConfig
pub fn normalized(&self) -> Self
Trait Implementations§
Source§impl Clone for QueuePolicyConfig
impl Clone for QueuePolicyConfig
Source§impl Debug for QueuePolicyConfig
impl Debug for QueuePolicyConfig
Source§impl Default for QueuePolicyConfig
impl Default for QueuePolicyConfig
Source§impl<'de> Deserialize<'de> for QueuePolicyConfig
impl<'de> Deserialize<'de> for QueuePolicyConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for QueuePolicyConfig
impl Freeze for QueuePolicyConfig
impl Move for QueuePolicyConfig
impl RefUnwindSafe for QueuePolicyConfig
impl Send for QueuePolicyConfig
impl Sync for QueuePolicyConfig
impl Unpin for QueuePolicyConfig
impl UnsafeUnpin for QueuePolicyConfig
impl UnwindSafe for QueuePolicyConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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