Macros§
- poll_
until - Repeatedly evaluates
condition
until it returnstrue
. Returns()
. - poll_
until_ async - Repeatedly evaluates
condition
to create aFuture
, and then awaits theFuture
. Returns()
when the (most recently created)Future
resolves totrue
. - poll_
until_ async_ 2 - A reimplementation of the above, which deals better with borrows.
- poll_
until_ some - Repeatedly evaluates
condition
until it returnsSome(v)
. Returnsv
. - poll_
until_ some_ async - Repeatedly evaluates an async
condition
until it returnsSome(v)
. Returnsv
. Use if your condition is an async fn.
Structs§
- BACKSTOP_
TIME - BEFORE_
BACKSTOP_ TIME - Fake
Clock Controller - A wrapper around a
FakeClockControlProxy
that also allows a client to read the current fake time. - Nested
Timekeeper - A reference to a timekeeper running inside a nested environment which runs fake versions of the services timekeeper requires.
- Push
Source Puppet - A
PushSource
that allows a single client and can be controlled by a test. - Remote
Push Source Puppet - Remote
RtcUpdates - 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
. - Source
Location - 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