pub struct DeviceSynchronousProxy { /* private fields */ }
Implementations§
source§impl DeviceSynchronousProxy
impl DeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<DeviceEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<DeviceEvent, 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 get_hardware_id(
&self,
___deadline: Time
) -> Result<DeviceGetHardwareIdResult, Error>
pub fn get_hardware_id( &self, ___deadline: Time ) -> Result<DeviceGetHardwareIdResult, Error>
Get the ChromeOS HWID for this device, which identifies a device’s model and configuration.
sourcepub fn get_rw_firmware_version(
&self,
___deadline: Time
) -> Result<DeviceGetRwFirmwareVersionResult, Error>
pub fn get_rw_firmware_version( &self, ___deadline: Time ) -> Result<DeviceGetRwFirmwareVersionResult, Error>
Get the version of the active RW firmware.
sourcepub fn get_ro_firmware_version(
&self,
___deadline: Time
) -> Result<DeviceGetRoFirmwareVersionResult, Error>
pub fn get_ro_firmware_version( &self, ___deadline: Time ) -> Result<DeviceGetRoFirmwareVersionResult, Error>
Get the version of the RO firmware.
sourcepub fn get_nvram_metadata_location(
&self,
___deadline: Time
) -> Result<DeviceGetNvramMetadataLocationResult, Error>
pub fn get_nvram_metadata_location( &self, ___deadline: Time ) -> Result<DeviceGetNvramMetadataLocationResult, Error>
Get the offset and size of the VBoot configuration in the CMOS nvram.
sourcepub fn get_flashmap_address(
&self,
___deadline: Time
) -> Result<DeviceGetFlashmapAddressResult, Error>
pub fn get_flashmap_address( &self, ___deadline: Time ) -> Result<DeviceGetFlashmapAddressResult, Error>
Get the address of the flashmap in physical memory.
sourcepub fn get_nvdata_version(
&self,
___deadline: Time
) -> Result<DeviceGetNvdataVersionResult, Error>
pub fn get_nvdata_version( &self, ___deadline: Time ) -> Result<DeviceGetNvdataVersionResult, Error>
Get the nvdata version.
sourcepub fn get_active_ap_firmware(
&self,
___deadline: Time
) -> Result<DeviceGetActiveApFirmwareResult, Error>
pub fn get_active_ap_firmware( &self, ___deadline: Time ) -> Result<DeviceGetActiveApFirmwareResult, Error>
Get the currently booted firmware slot.