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_performance_state_info(
&self,
state: u32,
___deadline: Time
) -> Result<DeviceGetPerformanceStateInfoResult, Error>
pub fn get_performance_state_info( &self, state: u32, ___deadline: Time ) -> Result<DeviceGetPerformanceStateInfoResult, Error>
Returns information about a given performance state for 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().