MCPcopy Create free account
hub / github.com/emberian/evdev / update_led_state

Method update_led_state

src/raw_stream.rs:548–551  ·  view source on GitHub ↗
(&self, led_vals: &mut AttributeSet<LedCode>)

Source from the content-addressed store, hash-verified

546 /// [`get_led_state`](Self::get_led_state) instead.
547 #[inline]
548 pub fn update_led_state(&self, led_vals: &mut AttributeSet<LedCode>) -> io::Result<()> {
549 unsafe { sys::eviocgled(self.as_raw_fd(), led_vals.as_mut_raw_slice())? };
550 Ok(())
551 }
552
553 /// Update the auto repeat delays
554 #[inline]

Callers 2

get_led_stateMethod · 0.80
sync_stateMethod · 0.80

Calls 2

as_mut_raw_sliceMethod · 0.80
as_raw_fdMethod · 0.45

Tested by

no test coverage detected