pub struct ServerMetrics { /* private fields */ }Implementations§
Source§impl ServerMetrics
impl ServerMetrics
pub fn on_connection_accepted(&self)
pub fn on_connection_refused(&self)
pub fn on_connection_closed(&self)
pub fn on_query_finished(&self, elapsed_ns: u64, sqlstate: Option<&str>)
pub fn on_shutdown_flush(&self, elapsed_ns: u64)
pub fn on_shutdown_persist(&self, elapsed_ns: u64)
pub fn set_buffer_pool_pressure(&self, stats: BufferPoolStats)
pub fn snapshot(&self) -> ServerMetricsSnapshot
Trait Implementations§
Source§impl Debug for ServerMetrics
impl Debug for ServerMetrics
Source§impl Default for ServerMetrics
impl Default for ServerMetrics
Source§fn default() -> ServerMetrics
fn default() -> ServerMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ServerMetrics
impl !RefUnwindSafe for ServerMetrics
impl Send for ServerMetrics
impl Sync for ServerMetrics
impl Unpin for ServerMetrics
impl UnsafeUnpin for ServerMetrics
impl UnwindSafe for ServerMetrics
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