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].
Trait Implementations§
Source§impl Proxy for RtcProxy
impl Proxy for RtcProxy
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 RtcProxyInterface for RtcProxy
impl RtcProxyInterface for RtcProxy
type PersistentDisableResponseFut = QueryResponseFut<Result<(), Error>>
type PersistentEnableResponseFut = QueryResponseFut<Result<(), Error>>
fn persistent_disable(&self) -> Self::PersistentDisableResponseFut
fn persistent_enable(&self) -> Self::PersistentEnableResponseFut
Auto Trait Implementations§
impl Freeze for RtcProxy
impl !RefUnwindSafe for RtcProxy
impl Send for RtcProxy
impl Sync for RtcProxy
impl Unpin for RtcProxy
impl !UnwindSafe for RtcProxy
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
)