pub struct CommandTiming {
pub started_at: SystemTime,
pub ended_at: Option<SystemTime>,
pub duration: Option<Duration>,
}Expand description
Timing captured for a command.
Fields§
§started_at: SystemTimeTime at which the command was recorded as started.
ended_at: Option<SystemTime>Time at which the command finished.
duration: Option<Duration>Duration between start and finish.
Trait Implementations§
Source§impl Clone for CommandTiming
impl Clone for CommandTiming
Source§fn clone(&self) -> CommandTiming
fn clone(&self) -> CommandTiming
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 CommandTiming
impl Debug for CommandTiming
impl Eq for CommandTiming
Source§impl PartialEq for CommandTiming
impl PartialEq for CommandTiming
Source§fn eq(&self, other: &CommandTiming) -> bool
fn eq(&self, other: &CommandTiming) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandTiming
Auto Trait Implementations§
impl Freeze for CommandTiming
impl RefUnwindSafe for CommandTiming
impl Send for CommandTiming
impl Sync for CommandTiming
impl Unpin for CommandTiming
impl UnsafeUnpin for CommandTiming
impl UnwindSafe for CommandTiming
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