pub trait SysSuspendProxyInterface: Send + Sync {
type CallbackResponseFut: Future<Output = Result<i32, Error>> + Send;
// Required method
fn callback(
&self,
enable_wake: bool,
suspend_reason: u8,
) -> Self::CallbackResponseFut;
}Required Associated Types§
Required Methods§
fn callback( &self, enable_wake: bool, suspend_reason: u8, ) -> Self::CallbackResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".