pub struct SystemClock;Expand description
The host’s clock — the only place in this workspace that reads it.
beck-cli/tests/clock.rs asserts that, by scanning the tree for the call the way
beck-cli/tests/docs.rs scans it for diagnostic codes. A second one appearing is the failure
F11 describes, caught at the moment it is introduced rather than three phases later.
Trait Implementations§
Source§impl Clock for SystemClock
impl Clock for SystemClock
Source§fn now_nanos(&self) -> u64
fn now_nanos(&self) -> u64
The one reading. Milliseconds are derived from it rather than taken separately, so the gate above is about a call and not about a file — two calls beside each other would satisfy “one place” while being exactly the habit the seam exists to end.
Source§fn now_millis(&self) -> i64
fn now_millis(&self) -> i64
Milliseconds since the Unix epoch.
Source§impl Clone for SystemClock
impl Clone for SystemClock
Source§fn clone(&self) -> SystemClock
fn clone(&self) -> SystemClock
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 moreSource§impl Debug for SystemClock
impl Debug for SystemClock
Source§impl Default for SystemClock
impl Default for SystemClock
Source§fn default() -> SystemClock
fn default() -> SystemClock
Returns the “default value” for a type. Read more
impl Copy for SystemClock
Auto Trait Implementations§
impl Freeze for SystemClock
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