Expand description
The pull_source
library defines an implementation of the PullSource
API and traits to hook
in an algorithm that produces time updates.
Structs§
- Pull
Source - An implementation of |fuchsia.time.external.PullSource| that routes time updates from an |UpdateAlgorithm| to clients of the fidl protocol and routes device property updates from fidl clients to the |UpdateAlgorithm|. This implementation is based on assumption that there’s only one client.
- Test
Update Algorithm - An UpdateAlgorithm that is backed up by the samples, set up by a test.
This implementation allows other crates and integration tests to use an implementation of
UpdateAlgorithm
.
Enums§
- Sample
Error - Reasons
sample()
may fail.
Traits§
- Update
Algorithm - An |UpdateAlgorithm| trait produces time samples on demand.