pub trait DeviceProxyInterface: Send + Sync {
type GetStatsResponseFut: Future<Output = Result<Vec<Stats>, Error>> + Send;
type GetEntitiesResponseFut: Future<Output = Result<Vec<Entity>, Error>> + Send;
// Required methods
fn get_stats(&self) -> Self::GetStatsResponseFut;
fn get_entities(&self) -> Self::GetEntitiesResponseFut;
}Required Associated Types§
type GetStatsResponseFut: Future<Output = Result<Vec<Stats>, Error>> + Send
type GetEntitiesResponseFut: Future<Output = Result<Vec<Entity>, Error>> + Send
Required Methods§
fn get_stats(&self) -> Self::GetStatsResponseFut
fn get_entities(&self) -> Self::GetEntitiesResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".