wasmtime_wasi::bindings::io::streams

Type Alias InputStream

Source
pub type InputStream = Box<dyn HostInputStream>;
Expand description

An input bytestream.

input-streams are non-blocking to the extent practical on underlying platforms. I/O operations always return promptly; if fewer bytes are promptly available than requested, they return the number of bytes promptly available, which could even be zero. To wait for data to be available, use the subscribe function to obtain a pollable which can be polled for using wasi:io/poll.

Aliased Typeยง

struct InputStream(/* private fields */);