3 releases

0.1.7 Sep 4, 2022
0.1.6 Sep 4, 2022
0.1.5 Sep 4, 2022
0.1.1 Jun 12, 2021
0.1.0 Jun 11, 2021

#2 in #seat

Download history 4366/week @ 2024-07-21 3423/week @ 2024-07-28 4886/week @ 2024-08-04 4034/week @ 2024-08-11 3229/week @ 2024-08-18 3632/week @ 2024-08-25 5598/week @ 2024-09-01 3154/week @ 2024-09-08 2964/week @ 2024-09-15 3296/week @ 2024-09-22 3129/week @ 2024-09-29 3068/week @ 2024-10-06 3580/week @ 2024-10-13 2933/week @ 2024-10-20 3062/week @ 2024-10-27 2609/week @ 2024-11-03

12,568 downloads per month
Used in 9 crates (via libseat)

MIT license

6KB
99 lines

libseat-rs

let seat = Seat::open(
    |seat, event| match event {
        SeatEvent::Enable => {
            println!("Enable");
            println!("Name: {}", seat.name());
        }
        SeatEvent::Disable => {
            println!("Disable");
            seat.disable().unwrap();
        }
    },
    None,
)

No runtime deps

~135KB