(&self)
| 3102 | |
| 3103 | #[cfg(target_arch = "x86_64")] |
| 3104 | pub fn power_button(&self) -> Result<()> { |
| 3105 | return self |
| 3106 | .device_manager |
| 3107 | .lock() |
| 3108 | .unwrap() |
| 3109 | .notify_power_button() |
| 3110 | .map_err(Error::PowerButton); |
| 3111 | } |
| 3112 | |
| 3113 | #[cfg(target_arch = "aarch64")] |
| 3114 | pub fn power_button(&self) -> Result<()> { |
no test coverage detected