pub enum AdjustRequest {
ReportBootToUtcMapping {
boot_reference: BootInstant,
utc_reference: i64,
responder: AdjustReportBootToUtcMappingResponder,
},
}
Expand description
Report UTC reference adjustment.
Allows components to request corrections to the reported UTC time. Very few components should be expected to have access to this capability.
Variants§
ReportBootToUtcMapping
Requests that the callee changes its UTC time estimate.
Reports the caller’s desired correspondence between the boot timeline, and the UTC timeline.
The caller is required to provide both reference points so that any
FIDL round-trip delays do not affect the callee’s interpretation of
the caller’s intentions. For example, were the callee to use its own
boot_reference
value instead of a caller-provided one, long wall time
delays between the caller’s and the callee’s sampling of boot_reference
would introduce a skew. While this is unlikely to happen on a device to
a meaningful extent, we established that this is the correct way to
transmit such information.
To wit, we have observed delays in test environments. This is likely because test environments run on emulators in shared-resource settings, where unusually long delays are relatively common.
Implementations§
Source§impl AdjustRequest
impl AdjustRequest
pub fn into_report_boot_to_utc_mapping( self, ) -> Option<(BootInstant, i64, AdjustReportBootToUtcMappingResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL