pub struct PoolElasticController { /* private fields */ }Implementations§
Source§impl PoolElasticController
impl PoolElasticController
pub fn new(config: ElasticConfig) -> Self
pub fn should_scale_up(stats: &PoolStats, config: &ElasticConfig) -> bool
pub fn should_scale_down(stats: &PoolStats, config: &ElasticConfig) -> bool
pub fn evaluate_and_scale(&self, stats: &PoolStats) -> Option<ScaleEvent>
pub fn scale_events(&self) -> Vec<ScaleEvent>
pub fn current_size(&self) -> u32
pub fn circuit_breaker(&self) -> &TieredCircuitBreaker
pub fn health_checker(&self) -> &ConnectionHealthChecker
pub fn config(&self) -> &ElasticConfig
pub fn prewarm(&self, target: u32) -> u32
Auto Trait Implementations§
impl !Freeze for PoolElasticController
impl RefUnwindSafe for PoolElasticController
impl Send for PoolElasticController
impl Sync for PoolElasticController
impl Unpin for PoolElasticController
impl UnsafeUnpin for PoolElasticController
impl UnwindSafe for PoolElasticController
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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