123456789module juptune.event.loop.core;
enum LinuxError : int
{
///
none = 0,
///
cancelled = 125
}
Result.make requires an enum type for strong typing, however I'm not going to make let alone maintain a list of all linux errors, so we'll get by with just cast(LinuxError)and cast(int)shennanigans if the error code is truly needed directly from a Result - which chances are unlikely to be the case.