Function wasmtime_wasi::sync::net::is_read_write

source ·
pub fn is_read_write<Socketlike>(f: Socketlike) -> Result<(bool, bool), Error>
where Socketlike: AsSocketlike,
Expand description

Return the file-descriptor flags for a given file-like object.

This returns the flags needed to implement WasiFile::get_fdflags.