Expand description
This module
Structs§
- Async
Server tokioasync 9p server.- Async
Server Builder - Builder-pattern struct to create an AsyncServer.
- Context
- Server context about the connected peer, instantiated Filesystem, and active state (requests, file descriptors).
- File
Error - 9P Error, numerical code and description as defined by the 9P UNIX variant.
- File
Handle - Handle to an open File of type FileT – containing some additional state if it exists (attached Session, any OpenFile type, etc).
- File
Handles - Map of all open Files (wrapped in their FileHandle) by file descriptor.
- Message
Context - Context about the connected session.
- RReader
- Read messages from the underlying [AsyncRead].
- RWriter
- Write messages to the underlying [AsyncWrite].
- Request
- Request type – opaque handle containing a T type message.
- Requests
- All pending requests known to the server.
- Session
- Session being requested. This contains internal state about the connecting user and filesystem requested.
- TReader
- Read messages from the underlying [AsyncRead].
- TWriter
- Write messages to the underlying [AsyncWrite].
Enums§
- File
Handles Error - Errors which the FileHandles manager may return.
- Requests
Error - Possible Errors from the state code when resolving a tag during a session.
- Server
Error - Possible Errors that may be returned.
Traits§
- File
- Trait to be implemented by a File returned by some Filesystem.
- Filesystem
- Filesystem represents a collection of files which may be accessed by some peer.
- Open
File - Handle to an open file.
Functions§
- connection_
handler - Handler to manage the reading/writing of R/T messages, and dispatch to internal methods after handshake, etc.
- message_
handler - common method to handle the processing of an incoming message of type T (9p T type), returning an R type (9p R type).
Type Aliases§
- File
Result - Result used by the File trait.