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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".