(&self)
| 5182 | |
| 5183 | #[cfg(target_arch = "x86_64")] |
| 5184 | pub fn notify_power_button(&self) -> DeviceManagerResult<()> { |
| 5185 | self.ged_notification_device |
| 5186 | .as_ref() |
| 5187 | .unwrap() |
| 5188 | .lock() |
| 5189 | .unwrap() |
| 5190 | .notify(AcpiNotificationFlags::POWER_BUTTON_CHANGED) |
| 5191 | .map_err(DeviceManagerError::PowerButtonNotification) |
| 5192 | } |
| 5193 | |
| 5194 | #[cfg(target_arch = "aarch64")] |
| 5195 | pub fn notify_power_button(&self) -> DeviceManagerResult<()> { |
no test coverage detected