Skip to main content

DomainControllerProxyInterface

Trait DomainControllerProxyInterface 

Source
pub trait DomainControllerProxyInterface: Send + Sync {
    type ListDomainsResponseFut: Future<Output = Result<Vec<DomainInfo>, Error>> + Send;
    type GetMaxFrequencyResponseFut: Future<Output = Result<DomainControllerGetMaxFrequencyResult, Error>> + Send;
    type SetMaxFrequencyResponseFut: Future<Output = Result<DomainControllerSetMaxFrequencyResult, Error>> + Send;
    type ClearMaxFrequencyResponseFut: Future<Output = Result<DomainControllerClearMaxFrequencyResult, Error>> + Send;
    type GetMinFrequencyResponseFut: Future<Output = Result<DomainControllerGetMinFrequencyResult, Error>> + Send;
    type LeaseMaxFrequencyResponseFut: Future<Output = Result<DomainControllerLeaseMaxFrequencyResult, Error>> + Send;
    type LeaseMinFrequencyResponseFut: Future<Output = Result<DomainControllerLeaseMinFrequencyResult, Error>> + Send;

    // Required methods
    fn list_domains(&self) -> Self::ListDomainsResponseFut;
    fn get_max_frequency(
        &self,
        domain_id: u64,
    ) -> Self::GetMaxFrequencyResponseFut;
    fn set_max_frequency(
        &self,
        domain_id: u64,
        frequency_index: u64,
    ) -> Self::SetMaxFrequencyResponseFut;
    fn clear_max_frequency(
        &self,
        domain_id: u64,
    ) -> Self::ClearMaxFrequencyResponseFut;
    fn get_min_frequency(
        &self,
        domain_id: u64,
    ) -> Self::GetMinFrequencyResponseFut;
    fn lease_max_frequency(
        &self,
        domain_id: u64,
        frequency_index: u64,
        lease_name: &str,
    ) -> Self::LeaseMaxFrequencyResponseFut;
    fn lease_min_frequency(
        &self,
        domain_id: u64,
        frequency_index: u64,
        lease_name: &str,
    ) -> Self::LeaseMinFrequencyResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn list_domains(&self) -> Self::ListDomainsResponseFut

Source

fn get_max_frequency(&self, domain_id: u64) -> Self::GetMaxFrequencyResponseFut

Source

fn set_max_frequency( &self, domain_id: u64, frequency_index: u64, ) -> Self::SetMaxFrequencyResponseFut

Source

fn clear_max_frequency( &self, domain_id: u64, ) -> Self::ClearMaxFrequencyResponseFut

Source

fn get_min_frequency(&self, domain_id: u64) -> Self::GetMinFrequencyResponseFut

Source

fn lease_max_frequency( &self, domain_id: u64, frequency_index: u64, lease_name: &str, ) -> Self::LeaseMaxFrequencyResponseFut

Source

fn lease_min_frequency( &self, domain_id: u64, frequency_index: u64, lease_name: &str, ) -> Self::LeaseMinFrequencyResponseFut

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§