Crate timekeeper_integration_lib

Source

Macros§

poll_until
Repeatedly evaluates condition until it returns true. Returns ().
poll_until_async
Repeatedly evaluates condition to create a Future, and then awaits the Future. Returns () when the (most recently created) Future resolves to true.
poll_until_async_2
A reimplementation of the above, which deals better with borrows.
poll_until_some
Repeatedly evaluates condition until it returns Some(v). Returns v.
poll_until_some_async
Repeatedly evaluates an async condition until it returns Some(v). Returns v. Use if your condition is an async fn.

Structs§

BACKSTOP_TIME
BEFORE_BACKSTOP_TIME
FakeClockController
A wrapper around a FakeClockControlProxy that also allows a client to read the current fake time.
NestedTimekeeper
A reference to a timekeeper running inside a nested environment which runs fake versions of the services timekeeper requires.
PushSourcePuppet
A PushSource that allows a single client and can be controlled by a test.
RemotePushSourcePuppet
RemoteRtcUpdates
Remote RTC updates - peek into the life of the RTC on the other side of a RTC connection.
RtcUpdates
The list of RTC update requests received by a NestedTimekeeper.
SourceLocation
VALID_RTC_TIME
VALID_TIME
VALID_TIME_2

Enums§

RtcOptions
The RTC configuration options.

Constants§

BETWEEN_SAMPLES
Time between each reported sample.
RETRY_WAIT_DURATION
Wait duration for polling.
STD_DEV
The standard deviation to report on valid time samples.

Functions§

create_cobalt_event_stream
Create a stream of MetricEvents from a proxy.
new_clock
Create a new clock with backstop time set to BACKSTOP_TIME.
new_nonshareable_clock
Create a new clock with backstop time set to BACKSTOP_TIME.
poll_until_async_impl
Use poll_until_async!() instead.
poll_until_impl
Use poll_until!() instead.
poll_until_some_impl
Use poll_until_some!() instead.
rtc_time_to_zx_time