pub struct ShiftedEnvironment { /* private fields */ }Expand description
The machine’s clock moved to another starting point: it reads start when made, and from
there runs at wall-clock speed. Identifiers stay fresh.
For a session whose kept time has to be some other day than today — replaying a recording, so the date in its prompt is the day it was recorded — while the order and spacing of what it writes stay real.
Implementations§
Source§impl ShiftedEnvironment
impl ShiftedEnvironment
pub fn starting_at(start: OffsetDateTime) -> Self
Sourcepub fn starting_at_ms(ms: u64) -> Option<Self>
pub fn starting_at_ms(ms: u64) -> Option<Self>
From milliseconds since the Unix epoch; None when out of range.
Trait Implementations§
Source§impl Environment for ShiftedEnvironment
impl Environment for ShiftedEnvironment
Auto Trait Implementations§
impl Forget for ShiftedEnvironment
impl Freeze for ShiftedEnvironment
impl Move for ShiftedEnvironment
impl RefUnwindSafe for ShiftedEnvironment
impl Send for ShiftedEnvironment
impl Sync for ShiftedEnvironment
impl Unpin for ShiftedEnvironment
impl UnsafeUnpin for ShiftedEnvironment
impl UnwindSafe for ShiftedEnvironment
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