Crates.io | rfkillr |
lib.rs | rfkillr |
version | 0.1.3 |
source | src |
created_at | 2023-04-19 15:35:29.360104 |
updated_at | 2023-04-19 15:35:29.360104 |
description | A Rust library for interacting with the rfkill subsystem on Linux |
homepage | |
repository | https://github.com/Taha-Firoz/rfkillr |
max_upload_size | |
id | 843653 |
size | 9,695 |
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);