Skip to main content

Crate sync_io_client

Crate sync_io_client 

Source
Expand description

This library provides a synchronous wrapper around fuchsia.io. It is usually better to use the Rust standard library for this (which will use fdio and zxio). The primary user of this library is Starnix which uses this for performance and memory reasons.

Structs§

RemoteDirectory
RemoteDirectory supports iteration of directories and things that you can do to directories via a file descriptor. Other opterations, such as creating children, can be done via RemoteIo. Iteration is not safe to be done concurrently because there is a seek pointer; readdir will resume from the seek position.
RemoteIo
Wraps a proxy and optional stream and provides wrappers around most fuchsia.io methods.

Traits§

Factory
This trait is used so that clients can create their own wrappers around types exposed here.

Functions§

create_with_on_representation
Waits for the fuchsia.io OnRepresentation event and then uses the factory to create an an appropriate object. This returns attributes (as requested by the corresponding open call) that are present in the OnRepresentation event.