Crate named_timer

Source

Structs§

  • A version of the fidl DeadlineId containing unowned data.
  • A timer with an associated name. This timer is intended to be used in conjunction with the fake-clock library. Under normal execution, the timer behaves the same as a regular [fuchsia_async::Timer]. When run in an integration test with the fake-clock library linked in, the creation of the timer and the expiration of the timer are reported to the fake-clock service. The integration test may register interest in these events to stop time when they occur.

Traits§

  • An extension trait that allows setting a timeout with an associated name. The timeout is intended to be used in conjunction with the fake-clock library. Under normal execution, this behaves identically to [fuchsia_async::TimeoutExt]. When run in an integration test with the fake-clock library linked in, the creation of the timer and the expiration of the timer are reported to the fake-clock service. The integration test may register interest in these events to stop time when they occur.