pub trait SleepInhibitor: Send + Sync {
// Required method
fn inhibit(&self) -> AppResult<SleepGuard>;
}Required Methods§
fn inhibit(&self) -> AppResult<SleepGuard>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".