pub enum RtcRequest {
PersistentDisable {
responder: RtcPersistentDisableResponder,
},
PersistentEnable {
responder: RtcPersistentEnableResponder,
},
}
Expand description
Connect to the RTC protocol to send messages to Timekeeper instructing it to modify its default behavior for testing purposes.
On devices that do not have a real time clock, this protocol is not useful.
Variants§
PersistentDisable
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.
Fields
responder: RtcPersistentDisableResponder
PersistentEnable
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].
Fields
responder: RtcPersistentEnableResponder
Implementations§
Source§impl RtcRequest
impl RtcRequest
pub fn into_persistent_disable(self) -> Option<RtcPersistentDisableResponder>
pub fn into_persistent_enable(self) -> Option<RtcPersistentEnableResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL