Crate servo_wakelock

Crate servo_wakelock 

Source
Expand description

Platform abstraction for the Screen Wake Lock API.

Defines WakeLockProvider, a trait for acquiring and releasing OS-level wake locks. Platform-specific implementations will be added in follow-up work. For now, NoOpWakeLockProvider is the only implementation and does nothing.

https://w3c.github.io/screen-wake-lock/

Structs§

NoOpWakeLockProvider
A no-op WakeLockProvider used when no platform implementation is available. All operations succeed silently.

Enums§

WakeLockType
The type of wake lock to acquire or release.

Traits§

WakeLockProvider
Trait for platform-specific wake lock support.