pub enum CacheStatus {
Hit(SystemTime),
Miss(Duration),
}
Expand description
Holds information about the cache status of a given command.
Variants§
Hit(SystemTime)
Command was found in the cache. Contains the time the returned invocation was cached.
Miss(Duration)
Command was not found in the cache and was executed. Contains the execution time of the subprocess.
Trait Implementations§
source§impl Clone for CacheStatus
impl Clone for CacheStatus
source§fn clone(&self) -> CacheStatus
fn clone(&self) -> CacheStatus
Returns a copy of the value. Read more
1.6.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 CacheStatus
impl Debug for CacheStatus
impl Copy for CacheStatus
Auto Trait Implementations§
impl Freeze for CacheStatus
impl RefUnwindSafe for CacheStatus
impl Send for CacheStatus
impl Sync for CacheStatus
impl Unpin for CacheStatus
impl UnwindSafe for CacheStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)