pub trait FileSystemServiceService: Send + Sync {
Show 17 methods
// Required methods
fn read_file(
&self,
ctx: RpcCallContext,
request: PathRequest,
) -> FileSystemServiceReadFileFuture<'_>;
fn write_file(
&self,
ctx: RpcCallContext,
request: WriteFileRequest,
) -> FileSystemServiceWriteFileFuture<'_>;
fn append_file(
&self,
ctx: RpcCallContext,
request: WriteFileRequest,
) -> FileSystemServiceAppendFileFuture<'_>;
fn mkdir(
&self,
ctx: RpcCallContext,
request: MkdirRequest,
) -> FileSystemServiceMkdirFuture<'_>;
fn read_dir(
&self,
ctx: RpcCallContext,
request: PathRequest,
) -> FileSystemServiceReadDirFuture<'_>;
fn stat(
&self,
ctx: RpcCallContext,
request: PathRequest,
) -> FileSystemServiceStatFuture<'_>;
fn exists(
&self,
ctx: RpcCallContext,
request: PathRequest,
) -> FileSystemServiceExistsFuture<'_>;
fn remove(
&self,
ctx: RpcCallContext,
request: RemoveRequest,
) -> FileSystemServiceRemoveFuture<'_>;
fn rename(
&self,
ctx: RpcCallContext,
request: RenameRequest,
) -> FileSystemServiceRenameFuture<'_>;
fn copy_file(
&self,
ctx: RpcCallContext,
request: RenameRequest,
) -> FileSystemServiceCopyFileFuture<'_>;
fn open_file(
&self,
ctx: RpcCallContext,
request: OpenFileRequest,
) -> FileSystemServiceOpenFileFuture<'_>;
fn file_read(
&self,
ctx: RpcCallContext,
request: FileReadRequest,
) -> FileSystemServiceFileReadFuture<'_>;
fn file_write(
&self,
ctx: RpcCallContext,
request: FileWriteRequest,
) -> FileSystemServiceFileWriteFuture<'_>;
fn file_flush(
&self,
ctx: RpcCallContext,
request: ResourceHandle,
) -> FileSystemServiceFileFlushFuture<'_>;
fn file_seek(
&self,
ctx: RpcCallContext,
request: FileSeekRequest,
) -> FileSystemServiceFileSeekFuture<'_>;
fn file_set_len(
&self,
ctx: RpcCallContext,
request: FileSetLenRequest,
) -> FileSystemServiceFileSetLenFuture<'_>;
fn file_close(
&self,
ctx: RpcCallContext,
request: ResourceHandle,
) -> FileSystemServiceFileCloseFuture<'_>;
}Required Methods§
fn read_file( &self, ctx: RpcCallContext, request: PathRequest, ) -> FileSystemServiceReadFileFuture<'_>
fn write_file( &self, ctx: RpcCallContext, request: WriteFileRequest, ) -> FileSystemServiceWriteFileFuture<'_>
fn append_file( &self, ctx: RpcCallContext, request: WriteFileRequest, ) -> FileSystemServiceAppendFileFuture<'_>
fn mkdir( &self, ctx: RpcCallContext, request: MkdirRequest, ) -> FileSystemServiceMkdirFuture<'_>
fn read_dir( &self, ctx: RpcCallContext, request: PathRequest, ) -> FileSystemServiceReadDirFuture<'_>
fn stat( &self, ctx: RpcCallContext, request: PathRequest, ) -> FileSystemServiceStatFuture<'_>
fn exists( &self, ctx: RpcCallContext, request: PathRequest, ) -> FileSystemServiceExistsFuture<'_>
fn remove( &self, ctx: RpcCallContext, request: RemoveRequest, ) -> FileSystemServiceRemoveFuture<'_>
fn rename( &self, ctx: RpcCallContext, request: RenameRequest, ) -> FileSystemServiceRenameFuture<'_>
fn copy_file( &self, ctx: RpcCallContext, request: RenameRequest, ) -> FileSystemServiceCopyFileFuture<'_>
fn open_file( &self, ctx: RpcCallContext, request: OpenFileRequest, ) -> FileSystemServiceOpenFileFuture<'_>
fn file_read( &self, ctx: RpcCallContext, request: FileReadRequest, ) -> FileSystemServiceFileReadFuture<'_>
fn file_write( &self, ctx: RpcCallContext, request: FileWriteRequest, ) -> FileSystemServiceFileWriteFuture<'_>
fn file_flush( &self, ctx: RpcCallContext, request: ResourceHandle, ) -> FileSystemServiceFileFlushFuture<'_>
fn file_seek( &self, ctx: RpcCallContext, request: FileSeekRequest, ) -> FileSystemServiceFileSeekFuture<'_>
fn file_set_len( &self, ctx: RpcCallContext, request: FileSetLenRequest, ) -> FileSystemServiceFileSetLenFuture<'_>
fn file_close( &self, ctx: RpcCallContext, request: ResourceHandle, ) -> FileSystemServiceFileCloseFuture<'_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".