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_operating_point_info(
&self,
opp: u32,
___deadline: Time
) -> Result<DeviceGetOperatingPointInfoResult, Error>
pub fn get_operating_point_info( &self, opp: u32, ___deadline: Time ) -> Result<DeviceGetOperatingPointInfoResult, Error>
Returns information about a given operating point for this performance domain.
sourcepub fn get_current_operating_point(
&self,
___deadline: Time
) -> Result<u32, Error>
pub fn get_current_operating_point( &self, ___deadline: Time ) -> Result<u32, Error>
Gets the current operating point of the device.
sourcepub fn set_current_operating_point(
&self,
requested_opp: u32,
___deadline: Time
) -> Result<DeviceSetCurrentOperatingPointResult, Error>
pub fn set_current_operating_point( &self, requested_opp: u32, ___deadline: Time ) -> Result<DeviceSetCurrentOperatingPointResult, Error>
Set the operating point of this device to the requested operating point. Returns ZX_OK, if the device is in a working state and the operating point is changed to requested_opp successfully. out_opp will be same as requested_opp. Returns error status, if switching to the requested_opp was unsuccessful. out_opp is the operating performance point (OPP) that the device is currently in.
sourcepub fn get_operating_point_count(
&self,
___deadline: Time
) -> Result<DeviceGetOperatingPointCountResult, Error>
pub fn get_operating_point_count( &self, ___deadline: Time ) -> Result<DeviceGetOperatingPointCountResult, Error>
Returns the number of operating points within this performance domain.
sourcepub fn get_num_logical_cores(&self, ___deadline: Time) -> Result<u64, Error>
pub fn get_num_logical_cores(&self, ___deadline: Time) -> Result<u64, Error>
Returns the number of logical cores contained within this performance domain.
sourcepub fn get_logical_core_id(
&self,
index: u64,
___deadline: Time
) -> Result<u64, Error>
pub fn get_logical_core_id( &self, index: u64, ___deadline: Time ) -> Result<u64, Error>
Returns a global system-wide core ID for the nth core in this
performance domain. index
must be a value in the range [0, n) where
n is the value returned by GetNumLogicalCores().
Trait Implementations§
source§impl Debug for DeviceSynchronousProxy
impl Debug for DeviceSynchronousProxy
source§impl SynchronousProxy for DeviceSynchronousProxy
impl SynchronousProxy for DeviceSynchronousProxy
§type Proxy = DeviceProxy
type Proxy = DeviceProxy
§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Proxy
controls.