pub struct ClockReading(/* private fields */);Expand description
The moment a run’s driver read its clock last, shared with the tool
faces that report the time (crates/runtime/spec/Clock.lean §8-53).
The driver’s clock hook is the one sampling point of a run, and a
tool face receives readings rather than sampling: the hook keeps
each reading before handing it on, and a command’s stamp or
status’s now: line reads latest. What they report is therefore
always some line’s t. Cloned, it is one cell.
“Not read yet” is a state of its own rather than an integer standing
for one. The lock holds one Copy value replaced whole, so a thread
that panicked while holding it cannot have left half a value behind,
and a poisoned lock is read like any other.
Implementations§
Trait Implementations§
Source§impl Clone for ClockReading
impl Clone for ClockReading
Source§impl Debug for ClockReading
impl Debug for ClockReading
Auto Trait Implementations§
impl Freeze for ClockReading
impl RefUnwindSafe for ClockReading
impl Send for ClockReading
impl Sync for ClockReading
impl Unpin for ClockReading
impl UnsafeUnpin for ClockReading
impl UnwindSafe for ClockReading
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