#linux #devices #system #hardware #rfkill

rfkillr

A Rust library for interacting with the rfkill subsystem on Linux

1 unstable release

0.1.3 Apr 19, 2023

#15 in #device

MIT license

10KB
227 lines

rfkillr 🦀🔪

Send rfkill commands through rust, not async

example

   let rfkill = RfKill::new()?;

    let reset_event = CRfKillEvent::default()
    .set_event_type(RfkillType::All)
    .set_op(RfkillOperations::RfKillOpChangeAll)
    .soft_block();

    rfkill.update_device(reset_event);

Dependencies

~1.9–2.7MB
~55K SLoC