Skip to main content

Crate embednfs

Crate embednfs 

Source
Expand description

Embeddable NFSv4.1 server library.

Provides a complete NFSv4.1 server implementation. Users implement the FileSystem trait; the library handles the wire protocol, session management, and serves it over TCP.

Structs§

AccessMask
Requested access bits for ACCESS.
Attrs
Exported object attributes.
CreateRequest
Create request for the core create operation.
CreateResult
Create result for the core create operation.
DirEntry
Paged directory entry.
DirPage
Paged directory listing result.
FsCapabilities
High-level server capability flags.
FsLimits
Exported filesystem limits.
FsStats
Exported filesystem space and inode statistics.
MemFs
In-memory filesystem implementation used by tests and examples.
NfsServer
The NFS server.
NfsServerBuilder
Builder for NfsServer.
NumericIdMapper
Default id mapper that renders numeric ids directly.
ReadResult
Read result for regular files and named attributes.
RequestContext
Request context for a single NFS operation.
SetAttrs
Partial attribute update request.
Timestamp
Timestamp carried through exported attributes.
WriteResult
Write result for the core write operation.

Enums§

AuthContext
Caller authentication details.
CreateKind
Create kind for the core create operation.
FsError
Backend error values surfaced through the NFS server.
ObjectType
Exported object kind.
SetTime
Requested time update.
WriteStability
Write stability level reported by the backend.
XattrSetMode
Controls how a named attribute should be written.

Traits§

CommitSupport
Optional explicit commit support.
FileSystem
Core filesystem trait implemented by embedders.
HardLinks
Optional hard-link support.
IdMapper
Maps numeric ids to NFS owner/group strings.
Symlinks
Optional symbolic-link support.
Xattrs
Optional named-attribute support.

Type Aliases§

FsResult
Result type used by filesystem backends.