Module file

Source
Expand description

Module holding different kinds of files and their building blocks.

Re-exports§

pub use connection::FidlIoConnection;
pub use connection::RawIoConnection;
pub use connection::GetVmo;
pub use connection::StreamIoConnection;
pub use vmo::read_only;

Modules§

connection
vmo
File nodes backed by VMOs. Implementation of a file backed by a VMO buffer shared by all the file connections.

Structs§

FileOptions
FileOptions include options that are relevant after the file has been opened. Flags like TRUNCATE, which only applies during open time, are not included.

Enums§

SyncMode

Traits§

File
Trait used for all files.
FileIo
FileLike
RawFileIoConnection
Trait for dispatching read, write, and seek FIDL requests for a given connection. The implementer of this trait is responsible for maintaining the per connection state.

Functions§

serve
Helper to open a file or node as required.
serve_proxy
Serve the provided file object on a new execution scope with flags.