(
&self,
switch_vals: &mut AttributeSet<SwitchCode>,
)
| 534 | /// [`get_switch_state`](Self::get_switch_state) instead. |
| 535 | #[inline] |
| 536 | pub fn update_switch_state( |
| 537 | &self, |
| 538 | switch_vals: &mut AttributeSet<SwitchCode>, |
| 539 | ) -> io::Result<()> { |
| 540 | unsafe { sys::eviocgsw(self.as_raw_fd(), switch_vals.as_mut_raw_slice())? }; |
| 541 | Ok(()) |
| 542 | } |
| 543 | |
| 544 | /// Fetch the current kernel LED state directly into the provided buffer. |
| 545 | /// If you don't already have a buffer, you probably want |
no test coverage detected