wasi_common::sync::net

Function is_read_write

Source
pub fn is_read_write<Socketlike: AsSocketlike>(
    f: Socketlike,
) -> Result<(bool, bool)>
Available on crate feature sync only.
Expand description

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

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