bytecodealliance/rustix

Add ClockId::try_from

i509VCB opened this issue · 0 comments

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.