fidl_fuchsia_hardware_cpu_ctrl

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type GetOperatingPointInfoResponseFut: Future<Output = Result<DeviceGetOperatingPointInfoResult, Error>> + Send;
    type GetCurrentOperatingPointResponseFut: Future<Output = Result<u32, Error>> + Send;
    type SetCurrentOperatingPointResponseFut: Future<Output = Result<DeviceSetCurrentOperatingPointResult, Error>> + Send;
    type GetOperatingPointCountResponseFut: Future<Output = Result<DeviceGetOperatingPointCountResult, Error>> + Send;
    type GetNumLogicalCoresResponseFut: Future<Output = Result<u64, Error>> + Send;
    type GetLogicalCoreIdResponseFut: Future<Output = Result<u64, Error>> + Send;
    type GetDomainIdResponseFut: Future<Output = Result<u32, Error>> + Send;
    type GetRelativePerformanceResponseFut: Future<Output = Result<DeviceGetRelativePerformanceResult, Error>> + Send;

    // Required methods
    fn get_operating_point_info(
        &self,
        opp: u32,
    ) -> Self::GetOperatingPointInfoResponseFut;
    fn get_current_operating_point(
        &self,
    ) -> Self::GetCurrentOperatingPointResponseFut;
    fn set_current_operating_point(
        &self,
        requested_opp: u32,
    ) -> Self::SetCurrentOperatingPointResponseFut;
    fn get_operating_point_count(
        &self,
    ) -> Self::GetOperatingPointCountResponseFut;
    fn get_num_logical_cores(&self) -> Self::GetNumLogicalCoresResponseFut;
    fn get_logical_core_id(
        &self,
        index: u64,
    ) -> Self::GetLogicalCoreIdResponseFut;
    fn get_domain_id(&self) -> Self::GetDomainIdResponseFut;
    fn get_relative_performance(
        &self,
    ) -> Self::GetRelativePerformanceResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§