pub struct EntryCall {
pub log_time: OffsetDateTime,
pub set_timestamp: OffsetDateTime,
pub start_time: OffsetDateTime,
pub lock_end_time: OffsetDateTime,
}
Expand description
struct containing details of how long the query took
Fields§
§log_time: OffsetDateTime
time recorded for the log entry
set_timestamp: OffsetDateTime
effective time of NOW() during the query run
start_time: OffsetDateTime
what time the query started
lock_end_time: OffsetDateTime
what time locks were released
Implementations§
Source§impl EntryCall
impl EntryCall
Sourcepub fn new(
log_time: OffsetDateTime,
set_timestamp: OffsetDateTime,
query_time: f64,
lock_time: f64,
) -> Self
pub fn new( log_time: OffsetDateTime, set_timestamp: OffsetDateTime, query_time: f64, lock_time: f64, ) -> Self
create a new instance of EntryCall
Sourcepub fn log_time(&self) -> OffsetDateTime
pub fn log_time(&self) -> OffsetDateTime
returns the entry time as an time::OffsetDateTime
Sourcepub fn set_timestamp(&self) -> OffsetDateTime
pub fn set_timestamp(&self) -> OffsetDateTime
returns the time stamp set at the beginning of each entry
Sourcepub fn start_time(&self) -> OffsetDateTime
pub fn start_time(&self) -> OffsetDateTime
what time the query started
Sourcepub fn lock_end_time(&self) -> OffsetDateTime
pub fn lock_end_time(&self) -> OffsetDateTime
what time locks were let go of
Trait Implementations§
impl Copy for EntryCall
impl StructuralPartialEq for EntryCall
Auto Trait Implementations§
impl Freeze for EntryCall
impl RefUnwindSafe for EntryCall
impl Send for EntryCall
impl Sync for EntryCall
impl Unpin for EntryCall
impl UnwindSafe for EntryCall
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