Struct reool::instrumentation::StateCountersInstrumentation [−][src]
pub struct StateCountersInstrumentation { /* fields omitted */ }
Trait Implementations
fn checked_out_connection(
&self,
_idle_for: Duration,
_time_since_checkout_request: Duration,
pool: PoolId
)
fn checked_out_connection(
&self,
_idle_for: Duration,
_time_since_checkout_request: Duration,
pool: PoolId
)
A connection was checked out
A connection that was previously checked out was checked in again
A newly created connection was checked in
A connection was dropped because it was marked as defect
fn connection_created(
&self,
_connected_after: Duration,
_total_time: Duration,
_pool: PoolId
)
fn connection_created(
&self,
_connected_after: Duration,
_total_time: Duration,
_pool: PoolId
)
A new connection was created
The number of in flight connections increased by 1
The number of in flight connections decreased by 1
A reservation has been enqueued
fn reservation_fulfilled(
&self,
_reservation_time: Duration,
_checkout_request_time: Duration,
pool: PoolId
)
fn reservation_fulfilled(
&self,
_reservation_time: Duration,
_checkout_request_time: Duration,
pool: PoolId
)
A reservation was fulfilled. A connection was available in time.
fn reservation_not_fulfilled(
&self,
_reservation_time: Duration,
_checkout_request_time: Duration,
pool: PoolId
)
fn reservation_not_fulfilled(
&self,
_reservation_time: Duration,
_checkout_request_time: Duration,
pool: PoolId
)
A reservation was not fulfilled. A connection was mostly not available in time.
The reservation queue has a limit and that limit was just reached. This means a checkout has instantaneously failed. Read more
The connection factory was asked to create a new connection but it failed to do so.
A pool internal message was received