pub struct DeviceProxy { /* private fields */ }
Implementations§
source§impl DeviceProxy
impl DeviceProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.cpu.ctrl/Device.
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 protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_operating_point_info(
&self,
opp: u32
) -> QueryResponseFut<DeviceGetOperatingPointInfoResult>
pub fn get_operating_point_info( &self, opp: u32 ) -> QueryResponseFut<DeviceGetOperatingPointInfoResult>
Returns information about a given operating point for this performance domain.
sourcepub fn get_current_operating_point(&self) -> QueryResponseFut<u32>
pub fn get_current_operating_point(&self) -> QueryResponseFut<u32>
Gets the current operating point of the device.
sourcepub fn set_current_operating_point(
&self,
requested_opp: u32
) -> QueryResponseFut<DeviceSetCurrentOperatingPointResult>
pub fn set_current_operating_point( &self, requested_opp: u32 ) -> QueryResponseFut<DeviceSetCurrentOperatingPointResult>
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
) -> QueryResponseFut<DeviceGetOperatingPointCountResult>
pub fn get_operating_point_count( &self ) -> QueryResponseFut<DeviceGetOperatingPointCountResult>
Returns the number of operating points within this performance domain.
sourcepub fn get_num_logical_cores(&self) -> QueryResponseFut<u64>
pub fn get_num_logical_cores(&self) -> QueryResponseFut<u64>
Returns the number of logical cores contained within this performance domain.
sourcepub fn get_logical_core_id(&self, index: u64) -> QueryResponseFut<u64>
pub fn get_logical_core_id(&self, index: u64) -> QueryResponseFut<u64>
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 Clone for DeviceProxy
impl Clone for DeviceProxy
source§fn clone(&self) -> DeviceProxy
fn clone(&self) -> DeviceProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceProxy
impl Debug for DeviceProxy
source§impl DeviceProxyInterface for DeviceProxy
impl DeviceProxyInterface for DeviceProxy
type GetOperatingPointInfoResponseFut = QueryResponseFut<Result<CpuOperatingPointInfo, i32>>
fn get_operating_point_info( &self, opp: u32 ) -> Self::GetOperatingPointInfoResponseFut
type GetCurrentOperatingPointResponseFut = QueryResponseFut<u32>
fn get_current_operating_point( &self ) -> Self::GetCurrentOperatingPointResponseFut
type SetCurrentOperatingPointResponseFut = QueryResponseFut<Result<u32, i32>>
fn set_current_operating_point( &self, requested_opp: u32 ) -> Self::SetCurrentOperatingPointResponseFut
type GetOperatingPointCountResponseFut = QueryResponseFut<Result<u32, i32>>
fn get_operating_point_count(&self) -> Self::GetOperatingPointCountResponseFut
type GetNumLogicalCoresResponseFut = QueryResponseFut<u64>
fn get_num_logical_cores(&self) -> Self::GetNumLogicalCoresResponseFut
type GetLogicalCoreIdResponseFut = QueryResponseFut<u64>
fn get_logical_core_id(&self, index: u64) -> Self::GetLogicalCoreIdResponseFut
source§impl Proxy for DeviceProxy
impl Proxy for DeviceProxy
§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Proxy
controls.