Crate pull_source

source ·
Expand description

The pull_source library defines an implementation of the PullSource API and traits to hook in an algorithm that produces time updates.


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.
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.


Reasons sample() may fail.


An |UpdateAlgorithm| trait produces time samples on demand.