pub struct PullSourceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PullSourceSynchronousProxy
impl PullSourceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PullSourceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PullSourceEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn update_device_properties(
&self,
properties: &Properties,
) -> Result<(), Error>
pub fn update_device_properties( &self, properties: &Properties, ) -> Result<(), Error>
Notifies the time source of changes to global properties of the device that it may use to increase accuracy of time measurements.
Sourcepub fn sample(
&self,
urgency: Urgency,
___deadline: MonotonicInstant,
) -> Result<PullSourceSampleResult, Error>
pub fn sample( &self, urgency: Urgency, ___deadline: MonotonicInstant, ) -> Result<PullSourceSampleResult, Error>
Produce a new time sample.
The server may consider the supplied urgency and will potentially produce a sample more quickly but with lower accuracy when a request is marked urgent.
The server will return an error for permanent errors but will block on conditions that are not known to be permanent (e.g. network not connected).
The server will return a RATE_LIMITED error if the client should wait
before requesting another sample. In this case the client may call
NextPossibleSampleTime
to determine when the time source will be
willing to produce another sample.
Sourcepub fn next_possible_sample_time(
&self,
___deadline: MonotonicInstant,
) -> Result<i64, Error>
pub fn next_possible_sample_time( &self, ___deadline: MonotonicInstant, ) -> Result<i64, Error>
Returns the monotonic time at which the PullSource is willing to produce another sample. If the PullSource is not rate limited it will return a time less than or equal to current monotonic time.
Trait Implementations§
Source§impl Debug for PullSourceSynchronousProxy
impl Debug for PullSourceSynchronousProxy
Source§impl SynchronousProxy for PullSourceSynchronousProxy
impl SynchronousProxy for PullSourceSynchronousProxy
Source§type Proxy = PullSourceProxy
type Proxy = PullSourceProxy
Source§type Protocol = PullSourceMarker
type Protocol = PullSourceMarker
Proxy
controls.