pub struct PushSourceProxy { /* private fields */ }
Implementations§
Source§impl PushSourceProxy
impl PushSourceProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.time.external/PushSource.
Sourcepub fn take_event_stream(&self) -> PushSourceEventStream
pub fn take_event_stream(&self) -> PushSourceEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<TimeSample, DefaultFuchsiaResourceDialect>
pub fn watch_sample( &self, ) -> QueryResponseFut<TimeSample, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<Status, DefaultFuchsiaResourceDialect>
pub fn watch_status( &self, ) -> QueryResponseFut<Status, DefaultFuchsiaResourceDialect>
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 Clone for PushSourceProxy
impl Clone for PushSourceProxy
Source§fn clone(&self) -> PushSourceProxy
fn clone(&self) -> PushSourceProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PushSourceProxy
impl Debug for PushSourceProxy
Source§impl Proxy for PushSourceProxy
impl Proxy for PushSourceProxy
Source§type Protocol = PushSourceMarker
type Protocol = PushSourceMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl PushSourceProxyInterface for PushSourceProxy
impl PushSourceProxyInterface for PushSourceProxy
type WatchSampleResponseFut = QueryResponseFut<TimeSample>
type WatchStatusResponseFut = QueryResponseFut<Status>
fn update_device_properties(&self, properties: &Properties) -> Result<(), Error>
fn watch_sample(&self) -> Self::WatchSampleResponseFut
fn watch_status(&self) -> Self::WatchStatusResponseFut
Auto Trait Implementations§
impl Freeze for PushSourceProxy
impl !RefUnwindSafe for PushSourceProxy
impl Send for PushSourceProxy
impl Sync for PushSourceProxy
impl Unpin for PushSourceProxy
impl !UnwindSafe for PushSourceProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)