pub enum ScaleReason {
Saturated,
Waiters,
Min,
Idle,
Underused,
Expired,
Replace,
}Expand description
Why the pool changed the number of connections to an origin (see Observer::pool_scaled).
Variants§
Saturated
A connection was saturated (busy actor, dispatch delay, full of streams): one more was dialed.
Waiters
Requests were waiting for a stream slot and a connection was dialed for them.
Min
Dialed to (re-)establish h2_min_conns_per_origin.
Idle
A connection with no streams for idle_timeout was closed.
Underused
The origin was underused and one connection was drained and closed.
Expired
A connection reached max_connection_lifetime and was retired.
Replace
A connection was dialed to replace one past max_connection_lifetime.
Implementations§
Trait Implementations§
Source§impl Clone for ScaleReason
impl Clone for ScaleReason
impl Copy for ScaleReason
Source§impl Debug for ScaleReason
impl Debug for ScaleReason
impl Eq for ScaleReason
Source§impl Hash for ScaleReason
impl Hash for ScaleReason
Source§impl PartialEq for ScaleReason
impl PartialEq for ScaleReason
impl StructuralPartialEq for ScaleReason
Auto Trait Implementations§
impl Forget for ScaleReason
impl Freeze for ScaleReason
impl Move for ScaleReason
impl RefUnwindSafe for ScaleReason
impl Send for ScaleReason
impl Sync for ScaleReason
impl Unpin for ScaleReason
impl UnsafeUnpin for ScaleReason
impl UnwindSafe for ScaleReason
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