Expand description
Dialect-neutral virtual filesystem interface.
Protocol dispatchers (SMB1/SMB2) translate incoming commands into the
operations of the Vfs trait; storage backends implement those
operations. This keeps information-level encoding, access-mask mapping
and status translation entirely inside the protocol layers.
Every method receives an IoCtxView-free simple
signature on purpose: backends only need the operation arguments plus the
OpenFile handle whose opaque inner they own.
Structs§
- Entry
- One directory enumeration entry.
- File
Meta - Snapshot of file metadata shared between protocol layers and backends.
- Open
File - An open file or directory handle owned by a backend.
Enums§
- SetOp
- Neutralised set-information operations. Dialect layers translate their
wire levels into these before calling [
Vfs::set_info]. - VfsError
- Errors returned by backends. Backends should map their native failures to these; the protocol layer translates them into NT status codes.
Traits§
- Vfs
- Storage abstraction used by the protocol dispatchers.
Functions§
- map_io
- Map an
std::io::Erroronto the closestVfsError.
Type Aliases§
- VfsResult
- Result alias used throughout the VFS surface.