Crates.io | libseat |
lib.rs | libseat |
version | 0.2.1 |
source | src |
created_at | 2021-06-11 17:46:27.14197 |
updated_at | 2023-08-15 13:50:31.433914 |
description | Safe libseat bindings |
homepage | |
repository | https://github.com/PolyMeilex/libseat-rs |
max_upload_size | |
id | 409058 |
size | 19,172 |
let seat = Seat::open(
|seat, event| match event {
SeatEvent::Enable => {
println!("Enable");
println!("Name: {}", seat.name());
}
SeatEvent::Disable => {
println!("Disable");
seat.disable().unwrap();
}
},
None,
)