pub struct FixedEnvironment { /* private fields */ }Expand description
Time that moves only when it is asked, and identifiers that count.
The second implementation, and the one the whole contract is for: two runs of the same conversation under one of these produce the same log, byte for byte. That is the property a recorded session is replayed against, and it is unachievable while a timestamp and a UUID are read from the machine.
Each call to now advances the clock by step, so successive entries are
ordered the way real ones are rather than sharing one instant.
Implementations§
Trait Implementations§
Source§impl Environment for FixedEnvironment
impl Environment for FixedEnvironment
Auto Trait Implementations§
impl !Freeze for FixedEnvironment
impl Forget for FixedEnvironment
impl Move for FixedEnvironment
impl RefUnwindSafe for FixedEnvironment
impl Send for FixedEnvironment
impl Sync for FixedEnvironment
impl Unpin for FixedEnvironment
impl UnsafeUnpin for FixedEnvironment
impl UnwindSafe for FixedEnvironment
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