Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polymeilex/libseat-rs
libseat-rs
https://github.com/polymeilex/libseat-rs
Last synced: about 2 months ago
JSON representation
libseat-rs
- Host: GitHub
- URL: https://github.com/polymeilex/libseat-rs
- Owner: PolyMeilex
- Created: 2021-04-08T13:21:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T13:50:25.000Z (over 1 year ago)
- Last Synced: 2024-10-11T09:48:01.989Z (2 months ago)
- Language: Rust
- Size: 50.8 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libseat-rs
```rust
let seat = Seat::open(
|seat, event| match event {
SeatEvent::Enable => {
println!("Enable");
println!("Name: {}", seat.name());
}
SeatEvent::Disable => {
println!("Disable");
seat.disable().unwrap();
}
},
None,
)
```