pub struct LogContextStats {
pub polls: u64,
pub cpu_time: Duration,
pub elapsed: Duration,
pub db_queries: u64,
pub db_rows_fetched: u64,
pub db_time: Duration,
}Expand description
A snapshot of a log context statistics
Fields§
§polls: u64How many times the context was polled
cpu_time: DurationThe approximate CPU time spent in the context
elapsed: DurationHow much time elapsed since the context was created
db_queries: u64How many database queries were executed in the context
db_rows_fetched: u64The number of rows fetched from the database in the context
db_time: DurationThe cumulative wall-clock time spent executing database queries
Trait Implementations§
Source§impl Clone for LogContextStats
impl Clone for LogContextStats
Source§fn clone(&self) -> LogContextStats
fn clone(&self) -> LogContextStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogContextStats
impl Debug for LogContextStats
Source§impl Display for LogContextStats
impl Display for LogContextStats
impl Copy for LogContextStats
Auto Trait Implementations§
impl Freeze for LogContextStats
impl RefUnwindSafe for LogContextStats
impl Send for LogContextStats
impl Sync for LogContextStats
impl Unpin for LogContextStats
impl UnsafeUnpin for LogContextStats
impl UnwindSafe for LogContextStats
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