pub struct Server<F: FileSystem + Sync> {
fs: F,
}
Fields§
§fs: F
Implementations§
source§impl<F: FileSystem + Sync> Server<F>
impl<F: FileSystem + Sync> Server<F>
pub fn new(fs: F) -> Server<F>
pub fn handle_message<R: Reader + ZeroCopyReader, W: Writer + ZeroCopyWriter, M: Mapper>( &self, r: R, w: W, mapper: M ) -> Result<usize>
fn lookup<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn forget<R: Reader>(&self, in_header: InHeader, r: R) -> Result<usize>
fn getattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn setattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn readlink<W: Writer>(&self, in_header: InHeader, w: W) -> Result<usize>
fn symlink<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn mknod<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn mkdir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn chromeos_tmpfile<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn unlink<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn rmdir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn do_rename<R: Reader, W: Writer>( &self, in_header: InHeader, msg_size: usize, newdir: u64, flags: u32, r: R, w: W ) -> Result<usize>
fn rename<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn rename2<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn link<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn open<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn read<R: Reader, W: ZeroCopyWriter + Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn write<R: Reader + ZeroCopyReader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn statfs<W: Writer>(&self, in_header: InHeader, w: W) -> Result<usize>
fn release<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn fsync<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn setxattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn getxattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn listxattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn removexattr<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn flush<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn init<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn opendir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn readdir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn lookup_dirent_attribute( &self, in_header: &InHeader, dir_entry: &DirEntry<'_> ) -> Result<Entry>
fn readdirplus<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn releasedir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn fsyncdir<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn getlk<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn setlk<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn setlkw<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn access<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn create<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn interrupt(&self, _in_header: InHeader) -> Result<usize>
fn bmap<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn destroy(&self) -> Result<usize>
fn ioctl<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn poll<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn notify_reply<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn batch_forget<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn fallocate<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn lseek<R: Reader, W: Writer>( &self, in_header: InHeader, _r: R, w: W ) -> Result<usize>
fn copy_file_range<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
fn set_up_mapping<R, W, M>( &self, in_header: InHeader, r: R, w: W, mapper: M ) -> Result<usize>
fn remove_mapping<R, W, M>( &self, in_header: InHeader, r: R, w: W, mapper: M ) -> Result<usize>
fn open_atomic<R: Reader, W: Writer>( &self, in_header: InHeader, r: R, w: W ) -> Result<usize>
Auto Trait Implementations§
impl<F> RefUnwindSafe for Server<F>where
F: RefUnwindSafe,
impl<F> Send for Server<F>where
F: Send,
impl<F> Sync for Server<F>
impl<F> Unpin for Server<F>where
F: Unpin,
impl<F> UnwindSafe for Server<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more