Expand description
The gate for target-side steps: lease, cancellation, session and connectivity checks.
Structsยง
- Gate ๐
- Decides, before each target-side try, whether the attempt may proceed; see
Gate::check.
Constantsยง
- MAX_
LEASE ๐ - The furthest
execute_byis allowed to lie ahead.
Functionsยง
- datetime_
to_ ๐instant - Converts a UTC
DateTimeto an [Instant]; past maps to now, far future caps atnow + 24h. - lease_
or_ ๐cancel - Aborts if the lease has expired or the run is cancelled, lease first.
- wait_
for_ ๐connectivity - Polls every second until connectivity is fresh, the lease expires, or the run is cancelled.
Type Aliasesยง
- LastOk ๐
- Reads the time of the last successful server contact.