pub trait MemoryMonitorProxyInterface: Send + Sync {
type GetSystemStatisticsResponseFut: Future<Output = Result<MemoryStatistics, Error>> + Send;
// Required methods
fn get_snapshot(&self, snapshot: Socket) -> Result<(), Error>;
fn get_system_statistics(&self) -> Self::GetSystemStatisticsResponseFut;
fn get_abridged_snapshot(&self, snapshot: Socket) -> Result<(), Error>;
}Required Associated Types§
type GetSystemStatisticsResponseFut: Future<Output = Result<MemoryStatistics, Error>> + Send
Required Methods§
fn get_snapshot(&self, snapshot: Socket) -> Result<(), Error>
fn get_system_statistics(&self) -> Self::GetSystemStatisticsResponseFut
fn get_abridged_snapshot(&self, snapshot: Socket) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".