Struct fidl_fuchsia_acpi_chromeos::DeviceProxy
source · pub struct DeviceProxy { /* private fields */ }
Implementations§
source§impl DeviceProxy
impl DeviceProxy
sourcepub fn take_event_stream(&self) -> DeviceEventStream
pub fn take_event_stream(&self) -> DeviceEventStream
Get a Stream of events from the remote end of the Device protocol
Panics
Panics if the event stream was already taken.
sourcepub fn get_hardware_id(&self) -> QueryResponseFut<DeviceGetHardwareIdResult>
pub fn get_hardware_id(&self) -> QueryResponseFut<DeviceGetHardwareIdResult>
Get the ChromeOS HWID for this device, which identifies a device’s model and configuration.
sourcepub fn get_rw_firmware_version(
&self
) -> QueryResponseFut<DeviceGetRwFirmwareVersionResult>
pub fn get_rw_firmware_version( &self ) -> QueryResponseFut<DeviceGetRwFirmwareVersionResult>
Get the version of the active RW firmware.
sourcepub fn get_ro_firmware_version(
&self
) -> QueryResponseFut<DeviceGetRoFirmwareVersionResult>
pub fn get_ro_firmware_version( &self ) -> QueryResponseFut<DeviceGetRoFirmwareVersionResult>
Get the version of the RO firmware.
sourcepub fn get_nvram_metadata_location(
&self
) -> QueryResponseFut<DeviceGetNvramMetadataLocationResult>
pub fn get_nvram_metadata_location( &self ) -> QueryResponseFut<DeviceGetNvramMetadataLocationResult>
Get the offset and size of the VBoot configuration in the CMOS nvram.
sourcepub fn get_flashmap_address(
&self
) -> QueryResponseFut<DeviceGetFlashmapAddressResult>
pub fn get_flashmap_address( &self ) -> QueryResponseFut<DeviceGetFlashmapAddressResult>
Get the address of the flashmap in physical memory.
sourcepub fn get_nvdata_version(
&self
) -> QueryResponseFut<DeviceGetNvdataVersionResult>
pub fn get_nvdata_version( &self ) -> QueryResponseFut<DeviceGetNvdataVersionResult>
Get the nvdata version.
sourcepub fn get_active_ap_firmware(
&self
) -> QueryResponseFut<DeviceGetActiveApFirmwareResult>
pub fn get_active_ap_firmware( &self ) -> QueryResponseFut<DeviceGetActiveApFirmwareResult>
Get the currently booted firmware slot.
Trait Implementations§
source§impl Clone for DeviceProxy
impl Clone for DeviceProxy
source§fn clone(&self) -> DeviceProxy
fn clone(&self) -> DeviceProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceProxy
impl Debug for DeviceProxy
source§impl DeviceProxyInterface for DeviceProxy
impl DeviceProxyInterface for DeviceProxy
type GetHardwareIdResponseFut = QueryResponseFut<Result<String, i32>>
fn get_hardware_id(&self) -> Self::GetHardwareIdResponseFut
type GetRwFirmwareVersionResponseFut = QueryResponseFut<Result<String, i32>>
fn get_rw_firmware_version(&self) -> Self::GetRwFirmwareVersionResponseFut
type GetRoFirmwareVersionResponseFut = QueryResponseFut<Result<String, i32>>
fn get_ro_firmware_version(&self) -> Self::GetRoFirmwareVersionResponseFut
type GetNvramMetadataLocationResponseFut = QueryResponseFut<Result<(u32, u32), i32>>
fn get_nvram_metadata_location( &self ) -> Self::GetNvramMetadataLocationResponseFut
type GetFlashmapAddressResponseFut = QueryResponseFut<Result<u64, i32>>
fn get_flashmap_address(&self) -> Self::GetFlashmapAddressResponseFut
type GetNvdataVersionResponseFut = QueryResponseFut<Result<u32, i32>>
fn get_nvdata_version(&self) -> Self::GetNvdataVersionResponseFut
type GetActiveApFirmwareResponseFut = QueryResponseFut<Result<BootSlot, i32>>
fn get_active_ap_firmware(&self) -> Self::GetActiveApFirmwareResponseFut
source§impl Proxy for DeviceProxy
impl Proxy for DeviceProxy
§type Protocol = DeviceMarker
type Protocol = DeviceMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more