pub struct AdjustSynchronousProxy { /* private fields */ }
Implementations§
Source§impl AdjustSynchronousProxy
impl AdjustSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AdjustEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AdjustEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn report_boot_to_utc_mapping(
&self,
boot_reference: BootInstant,
utc_reference: i64,
___deadline: MonotonicInstant,
) -> Result<AdjustReportBootToUtcMappingResult, Error>
pub fn report_boot_to_utc_mapping( &self, boot_reference: BootInstant, utc_reference: i64, ___deadline: MonotonicInstant, ) -> Result<AdjustReportBootToUtcMappingResult, Error>
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.
Trait Implementations§
Source§impl Debug for AdjustSynchronousProxy
impl Debug for AdjustSynchronousProxy
Source§impl SynchronousProxy for AdjustSynchronousProxy
impl SynchronousProxy for AdjustSynchronousProxy
Source§type Proxy = AdjustProxy
type Proxy = AdjustProxy
Source§type Protocol = AdjustMarker
type Protocol = AdjustMarker
Proxy
controls.