pub struct PushSourceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PushSourceSynchronousProxy
impl PushSourceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PushSourceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PushSourceEvent, 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 watch_sample(
&self,
___deadline: MonotonicInstant,
) -> Result<TimeSample, Error>
pub fn watch_sample( &self, ___deadline: MonotonicInstant, ) -> Result<TimeSample, Error>
Watch for new time samples from the time source. This method is a hanging get and returns the latest time sample if one is available and has not already been returned to the client. If no such sample is available, the method will hang until one is produced and return it then.
Note that it is entirely at the discretion of the PushSource implementation when to produce a sample; a call to WatchSample does not necessarily trigger sample collection.
In the case a client sends a second WatchSample request while another request is active, the channel is closed with a ZX_ERR_BAD_STATE epitaph.
Sourcepub fn watch_status(
&self,
___deadline: MonotonicInstant,
) -> Result<Status, Error>
pub fn watch_status( &self, ___deadline: MonotonicInstant, ) -> Result<Status, Error>
Watch for changes in the status of the time source.
This method is a hanging get that returns when the status changes from the last status reported to the client.
In the case a client sends a second WatchStatus request while another request is active, the channel is closed with a ZX_ERR_BAD_STATE epitaph.
Trait Implementations§
Source§impl Debug for PushSourceSynchronousProxy
impl Debug for PushSourceSynchronousProxy
Source§impl SynchronousProxy for PushSourceSynchronousProxy
impl SynchronousProxy for PushSourceSynchronousProxy
Source§type Proxy = PushSourceProxy
type Proxy = PushSourceProxy
Source§type Protocol = PushSourceMarker
type Protocol = PushSourceMarker
Proxy
controls.