libseat

Crates.iolibseat
lib.rslibseat
version0.2.1
sourcesrc
created_at2021-06-11 17:46:27.14197
updated_at2023-08-15 13:50:31.433914
descriptionSafe libseat bindings
homepage
repositoryhttps://github.com/PolyMeilex/libseat-rs
max_upload_size
id409058
size19,172
Publishers (github:smithay:publishers)

documentation

https://docs.rs/libseat

README

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,
)
Commit count: 33

cargo fmt