fidl_fuchsia_virtualization

Trait BalloonControllerProxyInterface

Source
pub trait BalloonControllerProxyInterface: Send + Sync {
    type GetBalloonSizeResponseFut: Future<Output = Result<(u32, u32), Error>> + Send;
    type GetMemStatsResponseFut: Future<Output = Result<(i32, Option<Vec<MemStat>>), Error>> + Send;

    // Required methods
    fn get_balloon_size(&self) -> Self::GetBalloonSizeResponseFut;
    fn request_num_pages(&self, requested_num_pages: u32) -> Result<(), Error>;
    fn get_mem_stats(&self) -> Self::GetMemStatsResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_balloon_size(&self) -> Self::GetBalloonSizeResponseFut

Source

fn request_num_pages(&self, requested_num_pages: u32) -> Result<(), Error>

Source

fn get_mem_stats(&self) -> Self::GetMemStatsResponseFut

Implementors§