pub struct EntryStats {
pub query_time: f64,
pub lock_time: f64,
pub rows_sent: u32,
pub rows_examined: u32,
}
Expand description
struct with stats on how long a query took and number of rows examined
Fields§
§query_time: f64
how long the query took
lock_time: f64
how long the query held locks
rows_sent: u32
how many rows were returned to the client
rows_examined: u32
how many rows were scanned to find result
Implementations§
Source§impl EntryStats
impl EntryStats
Sourcepub fn query_time(&self) -> f64
pub fn query_time(&self) -> f64
returns how long the query took to run
Sourcepub fn rows_examined(&self) -> u32
pub fn rows_examined(&self) -> u32
returns how many rows where examined to execute the query
Trait Implementations§
Source§impl Clone for EntryStats
impl Clone for EntryStats
Source§fn clone(&self) -> EntryStats
fn clone(&self) -> EntryStats
Returns a copy of the value. Read more
1.0.0 · 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 EntryStats
impl Debug for EntryStats
Source§impl From<StatsLine> for EntryStats
impl From<StatsLine> for EntryStats
Source§impl PartialEq for EntryStats
impl PartialEq for EntryStats
Source§impl PartialOrd for EntryStats
impl PartialOrd for EntryStats
impl Copy for EntryStats
impl StructuralPartialEq for EntryStats
Auto Trait Implementations§
impl Freeze for EntryStats
impl RefUnwindSafe for EntryStats
impl Send for EntryStats
impl Sync for EntryStats
impl Unpin for EntryStats
impl UnwindSafe for EntryStats
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