bytecodealliance / bytecodealliance/rustix
Add ClockId::try_from
- Vorherrschende Sprache
- Rust
- Sterne
- 2.1k
- Forks
- 294
- Ø Merge
- 6 T. 22 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
As a part of using the Wayland presentation time protocol, a way to convert a `u32` into a ClockId would be nice.
DynamicClockId I'd question if this type of API works. The DynamicClockId actually borrows an OwnedFd, so it probably would not work with a TryFrom API.
Beitragsleitfaden
Rechercherichtung
Beginne damit, ClockId und seine vorhandenen Konvertierungs-APIs zu lokalisieren, und lies dann die im Issue erwähnte Verwendung von Wayland presentation time. Prüfe, worin sich DynamicClockId unterscheidet, da es ein OwnedFd ausleiht. Als erledigt gilt die Aufgabe, wenn die angeforderte u32-to-ClockId-Konvertierung definiert und durch die relevanten Tests des Projekts abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- operating-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100