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