pub struct RtcProxy { /* private fields */ }
Implementations§
Source§impl RtcProxy
impl RtcProxy
Sourcepub fn take_event_stream(&self) -> RtcEventStream
pub fn take_event_stream(&self) -> RtcEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn persistent_disable(
&self,
) -> QueryResponseFut<RtcPersistentDisableResult, DefaultFuchsiaResourceDialect>
pub fn persistent_disable( &self, ) -> QueryResponseFut<RtcPersistentDisableResult, DefaultFuchsiaResourceDialect>
Call [PersistentDisable] to instruct Timekeeper not to update the RTC with the latest UTC clock estimate. Once a reply is received, the Timekeeper will not update the RTC.
This is useful in tests that exercise the RTC and must therefore write to it exclusively, possibly entering a race with Timekeeper’s own RTC updates.
NOTE: The setting persists across reboots, due to the testing persistence requirements. Implementations should have a way to limit the number of reboots for which this setting takes effect. This is to avoid a lasting behavior change resulting from problems in the test fixture.
Sourcepub fn persistent_enable(
&self,
) -> QueryResponseFut<RtcPersistentEnableResult, DefaultFuchsiaResourceDialect>
pub fn persistent_enable( &self, ) -> QueryResponseFut<RtcPersistentEnableResult, DefaultFuchsiaResourceDialect>
Undoes the effects of [PersistentDisable].
The test fixture should always attempt to call this method, and have it
succeed. See also the NOTE
section on [PersistentDisable].