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.

Structs

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.

Enums

Reasons sample() may fail.

Traits

An |UpdateAlgorithm| trait produces time samples on demand.