Skip to main content

ControlProxyInterface

Trait ControlProxyInterface 

Source
pub trait ControlProxyInterface: Send + Sync {
    type SetSuspendEnterResultResponseFut: Future<Output = Result<(), Error>> + Send;
    type GetStateResponseFut: Future<Output = Result<u32, Error>> + Send;

    // Required methods
    fn set_suspend_enter_result(
        &self,
        status: i32,
    ) -> Self::SetSuspendEnterResultResponseFut;
    fn get_state(&self) -> Self::GetStateResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§