Skip to main content

ClientProxyInterface

Trait ClientProxyInterface 

Source
pub trait ClientProxyInterface: Send + Sync {
    type GetPowercapTreeResponseFut: Future<Output = Result<Vec<PowercapNodeInfo>, Error>> + Send;
    type GetPowerLimitResponseFut: Future<Output = Result<ClientGetPowerLimitResult, Error>> + Send;
    type SetPowerLimitResponseFut: Future<Output = Result<ClientSetPowerLimitResult, Error>> + Send;
    type GetPowerLimitBypassResponseFut: Future<Output = Result<ClientGetPowerLimitBypassResult, Error>> + Send;
    type SetPowerLimitBypassResponseFut: Future<Output = Result<ClientSetPowerLimitBypassResult, Error>> + Send;

    // Required methods
    fn get_powercap_tree(&self) -> Self::GetPowercapTreeResponseFut;
    fn get_power_limit(&self, node_id: u64) -> Self::GetPowerLimitResponseFut;
    fn set_power_limit(
        &self,
        node_id: u64,
        power_limit_uw: u64,
    ) -> Self::SetPowerLimitResponseFut;
    fn get_power_limit_bypass(
        &self,
        node_id: u64,
    ) -> Self::GetPowerLimitBypassResponseFut;
    fn set_power_limit_bypass(
        &self,
        node_id: u64,
        bypass_time_ms: u64,
    ) -> Self::SetPowerLimitBypassResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_powercap_tree(&self) -> Self::GetPowercapTreeResponseFut

Source

fn get_power_limit(&self, node_id: u64) -> Self::GetPowerLimitResponseFut

Source

fn set_power_limit( &self, node_id: u64, power_limit_uw: u64, ) -> Self::SetPowerLimitResponseFut

Source

fn get_power_limit_bypass( &self, node_id: u64, ) -> Self::GetPowerLimitBypassResponseFut

Source

fn set_power_limit_bypass( &self, node_id: u64, bypass_time_ms: u64, ) -> Self::SetPowerLimitBypassResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§