Module server

Module server 

Source
Expand description

This module

Structs§

AsyncServer
tokio async 9p server.
AsyncServerBuilder
Builder-pattern struct to create an AsyncServer.
Context
Server context about the connected peer, instantiated Filesystem, and active state (requests, file descriptors).
FileError
9P Error, numerical code and description as defined by the 9P UNIX variant.
FileHandle
Handle to an open File of type FileT – containing some additional state if it exists (attached Session, any OpenFile type, etc).
FileHandles
Map of all open Files (wrapped in their FileHandle) by file descriptor.
MessageContext
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§

FileHandlesError
Errors which the FileHandles manager may return.
RequestsError
Possible Errors from the state code when resolving a tag during a session.
ServerError
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.
OpenFile
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§

FileResult
Result used by the File trait.