pub struct PullSourceProxy { /* private fields */ }
Implementations§
Source§impl PullSourceProxy
impl PullSourceProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.time.external/PullSource.
Sourcepub fn take_event_stream(&self) -> PullSourceEventStream
pub fn take_event_stream(&self) -> PullSourceEventStream
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 sample(
&self,
urgency: Urgency,
) -> QueryResponseFut<PullSourceSampleResult, DefaultFuchsiaResourceDialect>
pub fn sample( &self, urgency: Urgency, ) -> QueryResponseFut<PullSourceSampleResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<i64, DefaultFuchsiaResourceDialect>
pub fn next_possible_sample_time( &self, ) -> QueryResponseFut<i64, DefaultFuchsiaResourceDialect>
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 Clone for PullSourceProxy
impl Clone for PullSourceProxy
Source§fn clone(&self) -> PullSourceProxy
fn clone(&self) -> PullSourceProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PullSourceProxy
impl Debug for PullSourceProxy
Source§impl Proxy for PullSourceProxy
impl Proxy for PullSourceProxy
Source§type Protocol = PullSourceMarker
type Protocol = PullSourceMarker
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 PullSourceProxyInterface for PullSourceProxy
impl PullSourceProxyInterface for PullSourceProxy
type SampleResponseFut = QueryResponseFut<Result<TimeSample, Error>>
type NextPossibleSampleTimeResponseFut = QueryResponseFut<i64>
fn update_device_properties(&self, properties: &Properties) -> Result<(), Error>
fn sample(&self, urgency: Urgency) -> Self::SampleResponseFut
fn next_possible_sample_time(&self) -> Self::NextPossibleSampleTimeResponseFut
Auto Trait Implementations§
impl Freeze for PullSourceProxy
impl !RefUnwindSafe for PullSourceProxy
impl Send for PullSourceProxy
impl Sync for PullSourceProxy
impl Unpin for PullSourceProxy
impl !UnwindSafe for PullSourceProxy
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
)