Type Definition wasmtime_wasi_http::streams::OutputStream
source · pub type OutputStream = u32;
Expand description
An output bytestream. In the future, this will be replaced by handle types.
This conceptually represents a stream<u8, _>
. It’s temporary
scaffolding until component-model’s async features are ready.
output-stream
s are non-blocking to the extent practical on
underlying platforms. Except where specified otherwise, I/O operations also
always return promptly, after the number of bytes that can be written
promptly, which could even be zero. To wait for the stream to be ready to
accept data, the subscribe-to-output-stream
function to obtain a
pollable
which can be polled for using wasi_poll
.
And at present, it is a u32
instead of being an actual handle, until
the wit-bindgen implementation of handles and resources is ready.
This represents a resource.