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§

PullSource
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.
TestUpdateAlgorithm
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§

SampleError
Reasons sample() may fail.

Traits§

UpdateAlgorithm
An |UpdateAlgorithm| trait produces time samples on demand.