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
Source§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
PEER_CLOSED signal.