rfkillr

Crates.iorfkillr
lib.rsrfkillr
version0.1.3
sourcesrc
created_at2023-04-19 15:35:29.360104
updated_at2023-04-19 15:35:29.360104
descriptionA Rust library for interacting with the rfkill subsystem on Linux
homepage
repositoryhttps://github.com/Taha-Firoz/rfkillr
max_upload_size
id843653
size9,695
Mohammad Taha Bin Firoz (Taha-Firoz)

documentation

README

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);
Commit count: 8

cargo fmt