NineP200L

Trait NineP200L 

pub trait NineP200L: Send + Sync {
Show 28 methods // Required methods fn version( &mut self, tag: u16, version: &Tversion, ) -> impl Future<Output = Result<Rversion, Error>> + Send + Sync; fn auth( &mut self, tag: u16, auth: &Tauth, ) -> impl Future<Output = Result<Rauth, Error>> + Send + Sync; fn flush( &mut self, tag: u16, flush: &Tflush, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn walk( &mut self, tag: u16, walk: &Twalk, ) -> impl Future<Output = Result<Rwalk, Error>> + Send + Sync; fn read( &mut self, tag: u16, read: &Tread, ) -> impl Future<Output = Result<Rread, Error>> + Send + Sync; fn write( &mut self, tag: u16, write: &Twrite, ) -> impl Future<Output = Result<Rwrite, Error>> + Send + Sync; fn clunk( &mut self, tag: u16, clunk: &Tclunk, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn remove( &mut self, tag: u16, remove: &Tremove, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn attach( &mut self, tag: u16, attach: &Tattach, ) -> impl Future<Output = Result<Rattach, Error>> + Send + Sync; fn statfs( &mut self, tag: u16, statfs: &Tstatfs, ) -> impl Future<Output = Result<Rstatfs, Error>> + Send + Sync; fn lopen( &mut self, tag: u16, lopen: &Tlopen, ) -> impl Future<Output = Result<Rlopen, Error>> + Send + Sync; fn lcreate( &mut self, tag: u16, lcreate: &Tlcreate, ) -> impl Future<Output = Result<Rlcreate, Error>> + Send + Sync; fn symlink( &mut self, tag: u16, symlink: &Tsymlink, ) -> impl Future<Output = Result<Rsymlink, Error>> + Send + Sync; fn mknod( &mut self, tag: u16, mknod: &Tmknod, ) -> impl Future<Output = Result<Rmknod, Error>> + Send + Sync; fn rename( &mut self, tag: u16, rename: &Trename, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn readlink( &mut self, tag: u16, readlink: &Treadlink, ) -> impl Future<Output = Result<Rreadlink, Error>> + Send + Sync; fn get_attr( &mut self, tag: u16, get_attr: &Tgetattr, ) -> impl Future<Output = Result<Rgetattr, Error>> + Send + Sync; fn set_attr( &mut self, tag: u16, set_attr: &Tsetattr, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn xattr_walk( &mut self, tag: u16, xattr_walk: &Txattrwalk, ) -> impl Future<Output = Result<Rxattrwalk, Error>> + Send + Sync; fn xattr_create( &mut self, tag: u16, xattr_create: &Txattrcreate, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn readdir( &mut self, tag: u16, readdir: &Treaddir, ) -> impl Future<Output = Result<Rreaddir, Error>> + Send + Sync; fn fsync( &mut self, tag: u16, fsync: &Tfsync, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn lock( &mut self, tag: u16, lock: &Tlock, ) -> impl Future<Output = Result<Rlock, Error>> + Send + Sync; fn get_lock( &mut self, tag: u16, get_lock: &Tgetlock, ) -> impl Future<Output = Result<Rgetlock, Error>> + Send + Sync; fn link( &mut self, tag: u16, link: &Tlink, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn mkdir( &mut self, tag: u16, mkdir: &Tmkdir, ) -> impl Future<Output = Result<Rmkdir, Error>> + Send + Sync; fn rename_at( &mut self, tag: u16, rename_at: &Trenameat, ) -> impl Future<Output = Result<(), Error>> + Send + Sync; fn unlink_at( &mut self, tag: u16, unlink_at: &Tunlinkat, ) -> impl Future<Output = Result<(), Error>> + Send + Sync;
}
Expand description

9p

Required Methods§

fn version( &mut self, tag: u16, version: &Tversion, ) -> impl Future<Output = Result<Rversion, Error>> + Send + Sync

The version message is the first message sent on a connection. It is used to negotiate the 9P protocol version and maximum message size.

fn auth( &mut self, tag: u16, auth: &Tauth, ) -> impl Future<Output = Result<Rauth, Error>> + Send + Sync

The auth message is used to authenticate a user to the server. It is sent after the version message and before any other messages. The auth message is optional and may be ignored by the server.

fn flush( &mut self, tag: u16, flush: &Tflush, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The flush message is used to flush pending I/O requests.

fn walk( &mut self, tag: u16, walk: &Twalk, ) -> impl Future<Output = Result<Rwalk, Error>> + Send + Sync

The walk message is used to traverse the file system hierarchy. It is sent by the client and responded to by the server.

fn read( &mut self, tag: u16, read: &Tread, ) -> impl Future<Output = Result<Rread, Error>> + Send + Sync

The read message is used to read data from a file.

fn write( &mut self, tag: u16, write: &Twrite, ) -> impl Future<Output = Result<Rwrite, Error>> + Send + Sync

The write message is used to write data to a file.

fn clunk( &mut self, tag: u16, clunk: &Tclunk, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The clunk message is used to release a fid.

fn remove( &mut self, tag: u16, remove: &Tremove, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The remove message is used to remove a file.

fn attach( &mut self, tag: u16, attach: &Tattach, ) -> impl Future<Output = Result<Rattach, Error>> + Send + Sync

The attach message is used to associate a fid with a file.

fn statfs( &mut self, tag: u16, statfs: &Tstatfs, ) -> impl Future<Output = Result<Rstatfs, Error>> + Send + Sync

The statfs message is used to retrieve file system information.

fn lopen( &mut self, tag: u16, lopen: &Tlopen, ) -> impl Future<Output = Result<Rlopen, Error>> + Send + Sync

The lopen message is used to open a file.

fn lcreate( &mut self, tag: u16, lcreate: &Tlcreate, ) -> impl Future<Output = Result<Rlcreate, Error>> + Send + Sync

The lcreate message is used to create a file.

The symlink message is used to create a symbolic link.

fn mknod( &mut self, tag: u16, mknod: &Tmknod, ) -> impl Future<Output = Result<Rmknod, Error>> + Send + Sync

The mknod message is used to create a device file.

fn rename( &mut self, tag: u16, rename: &Trename, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The rename message is used to rename a file.

The readlink message is used to read the target of a symbolic link.

fn get_attr( &mut self, tag: u16, get_attr: &Tgetattr, ) -> impl Future<Output = Result<Rgetattr, Error>> + Send + Sync

The getattr message is used to retrieve file attributes.

fn set_attr( &mut self, tag: u16, set_attr: &Tsetattr, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The setattr message is used to set file attributes.

fn xattr_walk( &mut self, tag: u16, xattr_walk: &Txattrwalk, ) -> impl Future<Output = Result<Rxattrwalk, Error>> + Send + Sync

The xattrwalk message is used to traverse extended attributes.

fn xattr_create( &mut self, tag: u16, xattr_create: &Txattrcreate, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The xattrcreate message is used to create an extended attribute.

fn readdir( &mut self, tag: u16, readdir: &Treaddir, ) -> impl Future<Output = Result<Rreaddir, Error>> + Send + Sync

The readdir message is used to read a directory.

fn fsync( &mut self, tag: u16, fsync: &Tfsync, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The fsync message is used to synchronize a file’s data and metadata.

fn lock( &mut self, tag: u16, lock: &Tlock, ) -> impl Future<Output = Result<Rlock, Error>> + Send + Sync

The lock message is used to lock a file.

fn get_lock( &mut self, tag: u16, get_lock: &Tgetlock, ) -> impl Future<Output = Result<Rgetlock, Error>> + Send + Sync

The getlock message is used to retrieve a file’s locks.

The link message is used to create a hard link.

fn mkdir( &mut self, tag: u16, mkdir: &Tmkdir, ) -> impl Future<Output = Result<Rmkdir, Error>> + Send + Sync

The mkdir message is used to create a directory.

fn rename_at( &mut self, tag: u16, rename_at: &Trenameat, ) -> impl Future<Output = Result<(), Error>> + Send + Sync

The renameat message is used to rename a file.

The unlinkat message is used to remove a file.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§