Struct tinylfu_cached::cache::clock::SystemClock
source · pub struct SystemClock {}Expand description
The default implementation of the Clock trait. SystemClock is cloneable.
Implementations§
source§impl SystemClock
impl SystemClock
Trait Implementations§
source§impl Clock for SystemClock
impl Clock for SystemClock
fn now(&self) -> SystemTime
fn has_passed(&self, time: &SystemTime) -> bool
source§impl Clone for SystemClock
impl Clone for SystemClock
source§fn clone(&self) -> SystemClock
fn clone(&self) -> SystemClock
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnwindSafe for SystemClock
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