pub enum Waking {
Woken,
Asleep {
wake_at: OffsetDateTime,
},
}Expand description
What RunCtx::await_wake produced: the timer counterpart of
Resumption, and separate from it because the two park for different
reasons and end differently. A suspension ends when someone supplies an
input; a sleep ends when an instant arrives and carries no input at all.
Variants§
Woken
The wake is recorded, whether it was replayed from the log or just persisted. Continue the run.
Asleep
The wake instant has not arrived. The run is parked durably; the
recorded SleepStarted already holds the deadline, so the process may
simply stop driving it and come back at wake_at or later.
Named for the state the run is in rather than for the non-event that
left it there, exactly as Resumption::Parked is.
Fields
wake_at: OffsetDateTimeThe recorded instant the run may continue at, so a caller deciding when to come back does not have to re-derive the log.