pub struct StatementMeta {
pub prepared_at: Instant,
pub execution_count: u64,
pub last_used: Instant,
pub avg_execution_us: f64,
}Expand description
Metadata about a cached statement.
Fields§
§prepared_at: InstantWhen the statement was prepared.
execution_count: u64Number of times the statement was executed.
last_used: InstantLast execution time.
avg_execution_us: f64Average execution time in microseconds.
Trait Implementations§
Source§impl Clone for StatementMeta
impl Clone for StatementMeta
Source§fn clone(&self) -> StatementMeta
fn clone(&self) -> StatementMeta
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StatementMeta
impl RefUnwindSafe for StatementMeta
impl Send for StatementMeta
impl Sync for StatementMeta
impl Unpin for StatementMeta
impl UnwindSafe for StatementMeta
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