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

Method get_switch_state

src/raw_stream.rs:487–491  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

485 /// Retrieve the current switch state directly via kernel syscall.
486 #[inline]
487 pub fn get_switch_state(&self) -> io::Result<AttributeSet<SwitchCode>> {
488 let mut switch_vals = AttributeSet::new();
489 self.update_switch_state(&mut switch_vals)?;
490 Ok(switch_vals)
491 }
492
493 /// Retrieve the current LED state directly via kernel syscall.
494 #[inline]

Callers

nothing calls this directly

Calls 1

update_switch_stateMethod · 0.80

Tested by

no test coverage detected