@@ -17,13 +17,16 @@ use crate::fd::BorrowedFd;
1717#[ non_exhaustive]
1818pub enum ClockId {
1919 /// `CLOCK_REALTIME`
20+ #[ doc( alias = "CLOCK_REALTIME" ) ]
2021 Realtime = bitcast ! ( c:: CLOCK_REALTIME ) ,
2122
2223 /// `CLOCK_MONOTONIC`
24+ #[ doc( alias = "CLOCK_MONOTONIC" ) ]
2325 Monotonic = bitcast ! ( c:: CLOCK_MONOTONIC ) ,
2426
2527 /// `CLOCK_UPTIME`
2628 #[ cfg( any( freebsdlike, target_os = "openbsd" ) ) ]
29+ #[ doc( alias = "CLOCK_UPTIME" ) ]
2730 Uptime = c:: CLOCK_UPTIME ,
2831
2932 /// `CLOCK_PROCESS_CPUTIME_ID`
@@ -33,6 +36,7 @@ pub enum ClockId {
3336 target_os = "redox" ,
3437 target_os = "vita"
3538 ) ) ) ]
39+ #[ doc( alias = "CLOCK_PROCESS_CPUTIME_ID" ) ]
3640 ProcessCPUTime = c:: CLOCK_PROCESS_CPUTIME_ID ,
3741
3842 /// `CLOCK_THREAD_CPUTIME_ID`
@@ -42,18 +46,22 @@ pub enum ClockId {
4246 target_os = "redox" ,
4347 target_os = "vita"
4448 ) ) ) ]
49+ #[ doc( alias = "CLOCK_THREAD_CPUTIME_ID" ) ]
4550 ThreadCPUTime = c:: CLOCK_THREAD_CPUTIME_ID ,
4651
4752 /// `CLOCK_REALTIME_COARSE`
4853 #[ cfg( any( linux_kernel, target_os = "freebsd" ) ) ]
54+ #[ doc( alias = "CLOCK_REALTIME_COARSE" ) ]
4955 RealtimeCoarse = c:: CLOCK_REALTIME_COARSE ,
5056
5157 /// `CLOCK_MONOTONIC_COARSE`
5258 #[ cfg( any( linux_kernel, target_os = "freebsd" ) ) ]
59+ #[ doc( alias = "CLOCK_MONOTONIC_COARSE" ) ]
5360 MonotonicCoarse = c:: CLOCK_MONOTONIC_COARSE ,
5461
5562 /// `CLOCK_MONOTONIC_RAW`
5663 #[ cfg( linux_kernel) ]
64+ #[ doc( alias = "CLOCK_MONOTONIC_RAW" ) ]
5765 MonotonicRaw = c:: CLOCK_MONOTONIC_RAW ,
5866
5967 /// `CLOCK_REALTIME_ALARM`, available on Linux >= 3.0
@@ -98,15 +106,19 @@ pub enum ClockId {
98106#[ non_exhaustive]
99107pub enum ClockId {
100108 /// `CLOCK_REALTIME`
109+ #[ doc( alias = "CLOCK_REALTIME" ) ]
101110 Realtime = c:: CLOCK_REALTIME ,
102111
103112 /// `CLOCK_MONOTONIC`
113+ #[ doc( alias = "CLOCK_MONOTONIC" ) ]
104114 Monotonic = c:: CLOCK_MONOTONIC ,
105115
106116 /// `CLOCK_PROCESS_CPUTIME_ID`
117+ #[ doc( alias = "CLOCK_PROCESS_CPUTIME_ID" ) ]
107118 ProcessCPUTime = c:: CLOCK_PROCESS_CPUTIME_ID ,
108119
109120 /// `CLOCK_THREAD_CPUTIME_ID`
121+ #[ doc( alias = "CLOCK_THREAD_CPUTIME_ID" ) ]
110122 ThreadCPUTime = c:: CLOCK_THREAD_CPUTIME_ID ,
111123}
112124
@@ -129,10 +141,12 @@ pub enum DynamicClockId<'a> {
129141
130142 /// `CLOCK_REALTIME_ALARM`, available on Linux >= 3.0
131143 #[ cfg( linux_kernel) ]
144+ #[ doc( alias = "CLOCK_REALTIME_ALARM" ) ]
132145 RealtimeAlarm ,
133146
134147 /// `CLOCK_TAI`, available on Linux >= 3.10
135148 #[ cfg( linux_kernel) ]
149+ #[ doc( alias = "CLOCK_TAI" ) ]
136150 Tai ,
137151
138152 /// `CLOCK_BOOTTIME`, available on Linux >= 2.6.39
@@ -142,9 +156,11 @@ pub enum DynamicClockId<'a> {
142156 target_os = "fuchsia" ,
143157 target_os = "openbsd"
144158 ) ) ]
159+ #[ doc( alias = "CLOCK_BOOTTIME" ) ]
145160 Boottime ,
146161
147162 /// `CLOCK_BOOTTIME_ALARM`, available on Linux >= 2.6.39
148163 #[ cfg( any( linux_kernel, target_os = "fuchsia" ) ) ]
164+ #[ doc( alias = "CLOCK_BOOTTIME_ALARM" ) ]
149165 BoottimeAlarm ,
150166}
0 commit comments