Struct PoolMetricsOpts
pub struct PoolMetricsOpts { /* private fields */ }
Implementations§
§impl PoolMetricsOpts
impl PoolMetricsOpts
pub fn new() -> PoolMetricsOpts
pub fn with_reused_connection_pos_bounds(
self,
bounds: Vec<f64>,
) -> PoolMetricsOpts
pub fn with_reused_connection_pos_bounds( self, bounds: Vec<f64>, ) -> PoolMetricsOpts
Manually specify bounds for the reused_connection_pos
metric.
pub fn set_reused_connection_pos_bounds(
&mut self,
bounds: Vec<f64>,
) -> &mut PoolMetricsOpts
pub fn set_reused_connection_pos_bounds( &mut self, bounds: Vec<f64>, ) -> &mut PoolMetricsOpts
Manually specify bounds for the reused_connection_pos
metric.
pub fn with_reused_connection_pos_parametrized_bounds(
self,
max: f64,
nbounds: usize,
) -> PoolMetricsOpts
pub fn with_reused_connection_pos_parametrized_bounds( self, max: f64, nbounds: usize, ) -> PoolMetricsOpts
Calculate exponentially-spaced bounds for the reused_connection_pos
metric.
pub fn set_reused_connection_pos_parametrized_bounds(
&mut self,
max: f64,
nbounds: usize,
) -> &mut PoolMetricsOpts
pub fn set_reused_connection_pos_parametrized_bounds( &mut self, max: f64, nbounds: usize, ) -> &mut PoolMetricsOpts
Calculate exponentially-spaced bounds for the reused_connection_pos
metric.
pub fn with_active_connection_delay_nanoseconds_bounds(
self,
bounds: Vec<f64>,
) -> PoolMetricsOpts
pub fn with_active_connection_delay_nanoseconds_bounds( self, bounds: Vec<f64>, ) -> PoolMetricsOpts
Manually specify bounds for the active_connection_delay_nanoseconds
metric.
pub fn set_active_connection_delay_nanoseconds_bounds(
&mut self,
bounds: Vec<f64>,
) -> &mut PoolMetricsOpts
pub fn set_active_connection_delay_nanoseconds_bounds( &mut self, bounds: Vec<f64>, ) -> &mut PoolMetricsOpts
Manually specify bounds for the active_connection_delay_nanoseconds
metric.
pub fn with_active_connection_delay_nanoseconds_parametrized_bounds(
self,
max: f64,
nbounds: usize,
) -> PoolMetricsOpts
pub fn with_active_connection_delay_nanoseconds_parametrized_bounds( self, max: f64, nbounds: usize, ) -> PoolMetricsOpts
Calculate exponentially-spaced bounds for the active_connection_delay_nanoseconds
metric.
pub fn set_active_connection_delay_nanoseconds_parametrized_bounds(
&mut self,
max: f64,
nbounds: usize,
) -> &mut PoolMetricsOpts
pub fn set_active_connection_delay_nanoseconds_parametrized_bounds( &mut self, max: f64, nbounds: usize, ) -> &mut PoolMetricsOpts
Calculate exponentially-spaced bounds for the active_connection_delay_nanoseconds
metric.
Trait Implementations§
§impl Debug for PoolMetricsOpts
impl Debug for PoolMetricsOpts
§impl Default for PoolMetricsOpts
impl Default for PoolMetricsOpts
§fn default() -> PoolMetricsOpts
fn default() -> PoolMetricsOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PoolMetricsOpts
impl RefUnwindSafe for PoolMetricsOpts
impl Send for PoolMetricsOpts
impl Sync for PoolMetricsOpts
impl Unpin for PoolMetricsOpts
impl UnwindSafe for PoolMetricsOpts
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more