pub struct ScaleThresholds {
pub busy_permille: u32,
pub dispatch_delay: Duration,
pub inbox: usize,
pub cooldown: Duration,
}Expand description
Scale-up thresholds. The defaults are the named constants above; override them only for tests or for workloads whose connections you know to be unusual.
Fields§
§busy_permille: u32§dispatch_delay: DurationSee DISPATCH_SATURATED.
inbox: usizeSee INBOX_SATURATED.
cooldown: DurationSee SCALE_UP_COOLDOWN.
Implementations§
Source§impl ScaleThresholds
impl ScaleThresholds
Sourcepub fn is_saturated(
&self,
load: LoadSnapshot,
in_flight: usize,
limit: usize,
) -> bool
pub fn is_saturated( &self, load: LoadSnapshot, in_flight: usize, limit: usize, ) -> bool
Is a connection with these signals (and in_flight of limit streams) saturated?
Trait Implementations§
Source§impl Clone for ScaleThresholds
impl Clone for ScaleThresholds
impl Copy for ScaleThresholds
Source§impl Debug for ScaleThresholds
impl Debug for ScaleThresholds
Source§impl Default for ScaleThresholds
impl Default for ScaleThresholds
impl Eq for ScaleThresholds
Source§impl PartialEq for ScaleThresholds
impl PartialEq for ScaleThresholds
impl StructuralPartialEq for ScaleThresholds
Auto Trait Implementations§
impl Forget for ScaleThresholds
impl Freeze for ScaleThresholds
impl Move for ScaleThresholds
impl RefUnwindSafe for ScaleThresholds
impl Send for ScaleThresholds
impl Sync for ScaleThresholds
impl Unpin for ScaleThresholds
impl UnsafeUnpin for ScaleThresholds
impl UnwindSafe for ScaleThresholds
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.