1
- <h1 ><a name =" imports " >World imports </a ></h1 >
1
+ <h1 ><a id =" imports " ></a >World imports </h1 >
2
2
<ul >
3
3
<li >Imports:
4
4
<ul >
5
- <
li >interface <
a href =
" #wasi_io_poll_0_2_1 " ><
code >wasi:io/
[email protected] .
1 </
code ></
a ></
li >
6
- <
li >interface <
a href =
" #wasi_clocks_monotonic_clock_0_2_1 " ><
code >wasi:clocks/
[email protected] .
1 </
code ></
a ></
li >
7
- <
li >interface <
a href =
" #wasi_clocks_wall_clock_0_2_1 " ><
code >wasi:clocks/
[email protected] .
1 </
code ></
a ></
li >
8
- <
li >interface <
a href =
" #wasi_clocks_timezone_0_2_1 " ><
code >wasi:clocks/
[email protected] .
1 </
code ></
a ></
li >
5
+ <
li >interface <
a href =
" #wasi_io_poll_0_2_2 " ><
code >wasi:io/
[email protected] .
2 </
code ></
a ></
li >
6
+ <
li >interface <
a href =
" #wasi_clocks_monotonic_clock_0_2_2 " ><
code >wasi:clocks/
[email protected] .
2 </
code ></
a ></
li >
7
+ <
li >interface <
a href =
" #wasi_clocks_wall_clock_0_2_2 " ><
code >wasi:clocks/
[email protected] .
2 </
code ></
a ></
li >
8
+ <
li >interface <
a href =
" #wasi_clocks_timezone_0_2_2 " ><
code >wasi:clocks/
[email protected] .
2 </
code ></
a ></
li >
9
9
</ul >
10
10
</li >
11
11
</ul >
12
- <
h2 ><
a name = " wasi_io_poll_0_2_1 " ></
a >Import interface wasi:io/
[email protected] .
1 </
h2 >
12
+ <
h2 ><
a id = " wasi_io_poll_0_2_2 " ></
a >Import interface wasi:io/
[email protected] .
2 </
h2 >
13
13
<p >A poll API intended to let users wait for I/O events on multiple handles
14
14
at once.</p >
15
15
<hr />
16
16
<h3 >Types</h3 >
17
- <h4 ><a name =" pollable " ></a ><code >resource pollable</code ></h4 >
17
+ <h4 ><a id =" pollable " ></a ><code >resource pollable</code ></h4 >
18
18
<h2 ><a href =" #pollable " ><code >pollable</code ></a > represents a single I/O event which may be ready, or not.</h2 >
19
19
<h3 >Functions</h3 >
20
- <h4 ><a name =" method_pollable_ready " ></a ><code >[method]pollable.ready: func</code ></h4 >
20
+ <h4 ><a id =" method_pollable_ready " ></a ><code >[method]pollable.ready: func</code ></h4 >
21
21
<p >Return the readiness of a pollable. This function never blocks.</p >
22
22
<p >Returns <code >true</code > when the pollable is ready, and <code >false</code > otherwise.</p >
23
23
<h5 >Params</h5 >
24
24
<ul >
25
- <li ><a name =" method_pollable_ready.self " ></a ><code >self</code >: borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
25
+ <li ><a id =" method_pollable_ready.self " ></a ><code >self</code >: borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
26
26
</ul >
27
27
<h5 >Return values</h5 >
28
28
<ul >
29
- <li ><a name =" method_pollable_ready.0 " ></a > <code >bool</code ></li >
29
+ <li ><a id =" method_pollable_ready.0 " ></a > <code >bool</code ></li >
30
30
</ul >
31
- <h4 ><a name =" method_pollable_block " ></a ><code >[method]pollable.block: func</code ></h4 >
31
+ <h4 ><a id =" method_pollable_block " ></a ><code >[method]pollable.block: func</code ></h4 >
32
32
<p ><code >block</code > returns immediately if the pollable is ready, and otherwise
33
33
blocks until ready.</p >
34
34
<p >This function is equivalent to calling <code >poll.poll</code > on a list
35
35
containing only this pollable.</p >
36
36
<h5 >Params</h5 >
37
37
<ul >
38
- <li ><a name =" method_pollable_block.self " ></a ><code >self</code >: borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
38
+ <li ><a id =" method_pollable_block.self " ></a ><code >self</code >: borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
39
39
</ul >
40
- <h4 ><a name =" poll " ></a ><code >poll: func</code ></h4 >
40
+ <h4 ><a id =" poll " ></a ><code >poll: func</code ></h4 >
41
41
<p >Poll for completion on a set of pollables.</p >
42
42
<p >This function takes a list of pollables, which identify I/O sources of
43
43
interest, and waits until one or more of the events is ready for I/O.</p >
@@ -56,13 +56,13 @@ the pollables has an error, it is indicated by marking the source as
56
56
being ready for I/O.</p >
57
57
<h5 >Params</h5 >
58
58
<ul >
59
- <li ><a name =" poll.in " ></a ><code >in</code >: list< ; borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ;> ; </li >
59
+ <li ><a id =" poll.in " ></a ><code >in</code >: list< ; borrow< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ;> ; </li >
60
60
</ul >
61
61
<h5 >Return values</h5 >
62
62
<ul >
63
- <li ><a name =" poll.0 " ></a > list< ; <code >u32</code >> ; </li >
63
+ <li ><a id =" poll.0 " ></a > list< ; <code >u32</code >> ; </li >
64
64
</ul >
65
- <
h2 ><
a name = " wasi_clocks_monotonic_clock_0_2_1 " ></
a >Import interface wasi:clocks/
[email protected] .
1 </
h2 >
65
+ <
h2 ><
a id = " wasi_clocks_monotonic_clock_0_2_2 " ></
a >Import interface wasi:clocks/
[email protected] .
2 </
h2 >
66
66
<p >WASI Monotonic Clock is a clock API intended to let users measure elapsed
67
67
time.</p >
68
68
<p >It is intended to be portable at least between Unix-family platforms and
@@ -71,57 +71,57 @@ Windows.</p>
71
71
successive reads of the clock will produce non-decreasing values.</p >
72
72
<hr />
73
73
<h3 >Types</h3 >
74
- <h4 ><a name =" pollable " ></a ><code >type pollable</code ></h4 >
74
+ <h4 ><a id =" pollable " ></a ><code >type pollable</code ></h4 >
75
75
<p ><a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a ></p >
76
76
<p >
77
- #### <a name =" instant " ></a >` type instant `
77
+ #### <a id =" instant " ></a >` type instant `
78
78
` u64 `
79
79
<p >An instant in time, in nanoseconds. An instant is relative to an
80
80
unspecified initial value, and can only be compared to instances from
81
81
the same monotonic-clock.
82
- <h4 ><a name =" duration " ></a ><code >type duration</code ></h4 >
82
+ <h4 ><a id =" duration " ></a ><code >type duration</code ></h4 >
83
83
<p ><code >u64</code ></p >
84
84
<p >A duration of time, in nanoseconds.
85
85
<hr />
86
86
<h3 >Functions</h3 >
87
- <h4 ><a name =" now " ></a ><code >now: func</code ></h4 >
87
+ <h4 ><a id =" now " ></a ><code >now: func</code ></h4 >
88
88
<p >Read the current value of the clock.</p >
89
89
<p >The clock is monotonic, therefore calling this function repeatedly will
90
90
produce a sequence of non-decreasing values.</p >
91
91
<h5 >Return values</h5 >
92
92
<ul >
93
- <li ><a name =" now.0 " ></a > <a href =" #instant " ><a href =" #instant " ><code >instant</code ></a ></a ></li >
93
+ <li ><a id =" now.0 " ></a > <a href =" #instant " ><a href =" #instant " ><code >instant</code ></a ></a ></li >
94
94
</ul >
95
- <h4 ><a name =" resolution " ></a ><code >resolution: func</code ></h4 >
95
+ <h4 ><a id =" resolution " ></a ><code >resolution: func</code ></h4 >
96
96
<p >Query the resolution of the clock. Returns the duration of time
97
97
corresponding to a clock tick.</p >
98
98
<h5 >Return values</h5 >
99
99
<ul >
100
- <li ><a name =" resolution.0 " ></a > <a href =" #duration " ><a href =" #duration " ><code >duration</code ></a ></a ></li >
100
+ <li ><a id =" resolution.0 " ></a > <a href =" #duration " ><a href =" #duration " ><code >duration</code ></a ></a ></li >
101
101
</ul >
102
- <h4 ><a name =" subscribe_instant " ></a ><code >subscribe-instant: func</code ></h4 >
102
+ <h4 ><a id =" subscribe_instant " ></a ><code >subscribe-instant: func</code ></h4 >
103
103
<p >Create a <a href =" #pollable " ><code >pollable</code ></a > which will resolve once the specified instant
104
104
has occurred.</p >
105
105
<h5 >Params</h5 >
106
106
<ul >
107
- <li ><a name =" subscribe_instant.when " ></a ><code >when</code >: <a href =" #instant " ><a href =" #instant " ><code >instant</code ></a ></a ></li >
107
+ <li ><a id =" subscribe_instant.when " ></a ><code >when</code >: <a href =" #instant " ><a href =" #instant " ><code >instant</code ></a ></a ></li >
108
108
</ul >
109
109
<h5 >Return values</h5 >
110
110
<ul >
111
- <li ><a name =" subscribe_instant.0 " ></a > own< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
111
+ <li ><a id =" subscribe_instant.0 " ></a > own< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
112
112
</ul >
113
- <h4 ><a name =" subscribe_duration " ></a ><code >subscribe-duration: func</code ></h4 >
113
+ <h4 ><a id =" subscribe_duration " ></a ><code >subscribe-duration: func</code ></h4 >
114
114
<p >Create a <a href =" #pollable " ><code >pollable</code ></a > that will resolve after the specified duration has
115
115
elapsed from the time this function is invoked.</p >
116
116
<h5 >Params</h5 >
117
117
<ul >
118
- <li ><a name =" subscribe_duration.when " ></a ><code >when</code >: <a href =" #duration " ><a href =" #duration " ><code >duration</code ></a ></a ></li >
118
+ <li ><a id =" subscribe_duration.when " ></a ><code >when</code >: <a href =" #duration " ><a href =" #duration " ><code >duration</code ></a ></a ></li >
119
119
</ul >
120
120
<h5 >Return values</h5 >
121
121
<ul >
122
- <li ><a name =" subscribe_duration.0 " ></a > own< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
122
+ <li ><a id =" subscribe_duration.0 " ></a > own< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
123
123
</ul >
124
- <
h2 ><
a name = " wasi_clocks_wall_clock_0_2_1 " ></
a >Import interface wasi:clocks/
[email protected] .
1 </
h2 >
124
+ <
h2 ><
a id = " wasi_clocks_wall_clock_0_2_2 " ></
a >Import interface wasi:clocks/
[email protected] .
2 </
h2 >
125
125
<p >WASI Wall Clock is a clock API intended to let users query the current
126
126
time. The name " ; wall" ; makes an analogy to a " ; clock on the wall" ; , which
127
127
is not necessarily monotonic as it may be reset.</p >
@@ -134,16 +134,16 @@ monotonic, making it unsuitable for measuring elapsed time.</p>
134
134
<p >It is intended for reporting the current date and time for humans.</p >
135
135
<hr />
136
136
<h3 >Types</h3 >
137
- <h4 ><a name =" datetime " ></a ><code >record datetime</code ></h4 >
137
+ <h4 ><a id =" datetime " ></a ><code >record datetime</code ></h4 >
138
138
<p >A time and date in seconds plus nanoseconds.</p >
139
139
<h5 >Record Fields</h5 >
140
140
<ul >
141
- <li ><a name =" datetime.seconds " ></a ><code >seconds</code >: <code >u64</code ></li >
142
- <li ><a name =" datetime.nanoseconds " ></a ><code >nanoseconds</code >: <code >u32</code ></li >
141
+ <li ><a id =" datetime.seconds " ></a ><code >seconds</code >: <code >u64</code ></li >
142
+ <li ><a id =" datetime.nanoseconds " ></a ><code >nanoseconds</code >: <code >u32</code ></li >
143
143
</ul >
144
144
<hr />
145
145
<h3 >Functions</h3 >
146
- <h4 ><a name =" now " ></a ><code >now: func</code ></h4 >
146
+ <h4 ><a id =" now " ></a ><code >now: func</code ></h4 >
147
147
<p >Read the current value of the clock.</p >
148
148
<p >This clock is not monotonic, therefore calling this function repeatedly
149
149
will not necessarily produce a sequence of non-decreasing values.</p >
@@ -153,29 +153,29 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
153
153
<p >The nanoseconds field of the output is always less than 1000000000.</p >
154
154
<h5 >Return values</h5 >
155
155
<ul >
156
- <li ><a name =" now.0 " ></a > <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
156
+ <li ><a id =" now.0 " ></a > <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
157
157
</ul >
158
- <h4 ><a name =" resolution " ></a ><code >resolution: func</code ></h4 >
158
+ <h4 ><a id =" resolution " ></a ><code >resolution: func</code ></h4 >
159
159
<p >Query the resolution of the clock.</p >
160
160
<p >The nanoseconds field of the output is always less than 1000000000.</p >
161
161
<h5 >Return values</h5 >
162
162
<ul >
163
- <li ><a name =" resolution.0 " ></a > <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
163
+ <li ><a id =" resolution.0 " ></a > <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
164
164
</ul >
165
- <
h2 ><
a name = " wasi_clocks_timezone_0_2_1 " ></
a >Import interface wasi:clocks/
[email protected] .
1 </
h2 >
165
+ <
h2 ><
a id = " wasi_clocks_timezone_0_2_2 " ></
a >Import interface wasi:clocks/
[email protected] .
2 </
h2 >
166
166
<hr />
167
167
<h3 >Types</h3 >
168
- <h4 ><a name =" datetime " ></a ><code >type datetime</code ></h4 >
168
+ <h4 ><a id =" datetime " ></a ><code >type datetime</code ></h4 >
169
169
<p ><a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></p >
170
170
<p >
171
- #### <a name =" timezone_display " ></a >` record timezone-display `
171
+ #### <a id =" timezone_display " ></a >` record timezone-display `
172
172
<p >Information useful for displaying the timezone of a specific <a href =" #datetime " ><code >datetime</code ></a >.</p >
173
173
<p >This information may vary within a single <code >timezone</code > to reflect daylight
174
174
saving time adjustments.</p >
175
175
<h5 >Record Fields</h5 >
176
176
<ul >
177
177
<li >
178
- <p ><a name =" timezone_display.utc_offset " ></a ><a href =" #utc_offset " ><code >utc-offset</code ></a >: <code >s32</code ></p >
178
+ <p ><a id =" timezone_display.utc_offset " ></a ><a href =" #utc_offset " ><code >utc-offset</code ></a >: <code >s32</code ></p >
179
179
<p >The number of seconds difference between UTC time and the local
180
180
time of the timezone.
181
181
<p >The returned value will always be less than 86400 which is the
@@ -184,7 +184,7 @@ number of seconds in a day (24<em>60</em>60).</p>
184
184
should return 0.</p >
185
185
</li >
186
186
<li >
187
- <p ><a name =" timezone_display.name " ></a ><code >name</code >: <code >string</code ></p >
187
+ <p ><a id =" timezone_display.name " ></a ><code >name</code >: <code >string</code ></p >
188
188
<p >The abbreviated name of the timezone to display to a user. The name
189
189
` UTC ` indicates Coordinated Universal Time. Otherwise, this should
190
190
reference local standards for the name of the time zone.
@@ -194,15 +194,15 @@ should be the string <code>UTC</code>.</p>
194
194
representation of the UTC offset may be returned, such as <code >-04:00</code >.</p >
195
195
</li >
196
196
<li >
197
- <p ><a name =" timezone_display.in_daylight_saving_time " ></a ><code >in-daylight-saving-time</code >: <code >bool</code ></p >
197
+ <p ><a id =" timezone_display.in_daylight_saving_time " ></a ><code >in-daylight-saving-time</code >: <code >bool</code ></p >
198
198
<p >Whether daylight saving time is active.
199
199
<p >In implementations that do not expose an actual time zone, this
200
200
should return false.</p >
201
201
</li >
202
202
</ul >
203
203
<hr />
204
204
<h3 >Functions</h3 >
205
- <h4 ><a name =" display " ></a ><code >display: func</code ></h4 >
205
+ <h4 ><a id =" display " ></a ><code >display: func</code ></h4 >
206
206
<p >Return information needed to display the given <a href =" #datetime " ><code >datetime</code ></a >. This includes
207
207
the UTC offset, the time zone name, and a flag indicating whether
208
208
daylight saving time is active.</p >
@@ -211,19 +211,19 @@ daylight saving time is active.</p>
211
211
saving time.</p >
212
212
<h5 >Params</h5 >
213
213
<ul >
214
- <li ><a name =" display.when " ></a ><code >when</code >: <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
214
+ <li ><a id =" display.when " ></a ><code >when</code >: <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
215
215
</ul >
216
216
<h5 >Return values</h5 >
217
217
<ul >
218
- <li ><a name =" display.0 " ></a > <a href =" #timezone_display " ><a href =" #timezone_display " ><code >timezone-display</code ></a ></a ></li >
218
+ <li ><a id =" display.0 " ></a > <a href =" #timezone_display " ><a href =" #timezone_display " ><code >timezone-display</code ></a ></a ></li >
219
219
</ul >
220
- <h4 ><a name =" utc_offset " ></a ><code >utc-offset: func</code ></h4 >
220
+ <h4 ><a id =" utc_offset " ></a ><code >utc-offset: func</code ></h4 >
221
221
<p >The same as <a href =" #display " ><code >display</code ></a >, but only return the UTC offset.</p >
222
222
<h5 >Params</h5 >
223
223
<ul >
224
- <li ><a name =" utc_offset.when " ></a ><code >when</code >: <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
224
+ <li ><a id =" utc_offset.when " ></a ><code >when</code >: <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
225
225
</ul >
226
226
<h5 >Return values</h5 >
227
227
<ul >
228
- <li ><a name =" utc_offset.0 " ></a > <code >s32</code ></li >
228
+ <li ><a id =" utc_offset.0 " ></a > <code >s32</code ></li >
229
229
</ul >
0 commit comments