pub struct FileSystemServiceClient { /* private fields */ }Implementations§
Source§impl FileSystemServiceClient
impl FileSystemServiceClient
pub fn instance_id(&self) -> InstanceId
pub fn for_instance(client: RpcClient, instance_id: InstanceId) -> Self
pub async fn resolve_named( client: RpcClient, name: impl Into<String>, ) -> Result<Self, RuntimeError>
pub async fn read_file( &self, request: &PathRequest, ) -> Result<BinaryPayload, RuntimeError>
pub async fn write_file( &self, request: &WriteFileRequest, ) -> Result<Empty, RuntimeError>
pub async fn append_file( &self, request: &WriteFileRequest, ) -> Result<Empty, RuntimeError>
pub async fn mkdir(&self, request: &MkdirRequest) -> Result<Empty, RuntimeError>
pub async fn read_dir( &self, request: &PathRequest, ) -> Result<Vec<DirEntry>, RuntimeError>
pub async fn stat( &self, request: &PathRequest, ) -> Result<FileStat, RuntimeError>
pub async fn exists(&self, request: &PathRequest) -> Result<bool, RuntimeError>
pub async fn remove( &self, request: &RemoveRequest, ) -> Result<Empty, RuntimeError>
pub async fn rename( &self, request: &RenameRequest, ) -> Result<Empty, RuntimeError>
pub async fn copy_file( &self, request: &RenameRequest, ) -> Result<Empty, RuntimeError>
pub async fn open_file( &self, request: &OpenFileRequest, ) -> Result<ResourceHandle, RuntimeError>
pub async fn file_read( &self, request: &FileReadRequest, ) -> Result<BinaryPayload, RuntimeError>
pub async fn file_write( &self, request: &FileWriteRequest, ) -> Result<Empty, RuntimeError>
pub async fn file_flush( &self, request: &ResourceHandle, ) -> Result<Empty, RuntimeError>
pub async fn file_seek( &self, request: &FileSeekRequest, ) -> Result<FileSeekResult, RuntimeError>
pub async fn file_set_len( &self, request: &FileSetLenRequest, ) -> Result<Empty, RuntimeError>
pub async fn file_close( &self, request: &ResourceHandle, ) -> Result<Empty, RuntimeError>
Trait Implementations§
Source§impl Clone for FileSystemServiceClient
impl Clone for FileSystemServiceClient
Source§fn clone(&self) -> FileSystemServiceClient
fn clone(&self) -> FileSystemServiceClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FileSystemServiceClient
impl !UnwindSafe for FileSystemServiceClient
impl Freeze for FileSystemServiceClient
impl Send for FileSystemServiceClient
impl Sync for FileSystemServiceClient
impl Unpin for FileSystemServiceClient
impl UnsafeUnpin for FileSystemServiceClient
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