pub struct FileSystemClient { /* private fields */ }Implementations§
Source§impl FileSystemClient
impl FileSystemClient
pub fn new(wapm: &str) -> Self
pub fn new_with_instance(wapm: &str, instance: &str, access_token: &str) -> Self
pub fn attach(handle: CallHandle) -> Self
pub fn wait(self) -> Result<(), BusError>
pub fn try_wait(&mut self) -> Result<Option<()>, BusError>
pub async fn init(&self) -> Result<FsResult<()>, BusError>
pub async fn read_dir(&self, path: String) -> Result<FsResult<Dir>, BusError>
pub async fn create_dir( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub async fn remove_dir(&self, path: String) -> Result<FsResult<()>, BusError>
pub async fn rename( &self, from: String, to: String, ) -> Result<FsResult<()>, BusError>
pub async fn remove_file(&self, path: String) -> Result<FsResult<()>, BusError>
pub async fn read_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub async fn read_symlink_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub async fn open( &self, path: String, options: OpenOptions, ) -> Result<Arc<dyn OpenedFile>, BusError>
pub fn blocking_init(&self) -> Result<FsResult<()>, BusError>
pub fn blocking_read_dir(&self, path: String) -> Result<FsResult<Dir>, BusError>
pub fn blocking_create_dir( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub fn blocking_remove_dir( &self, path: String, ) -> Result<FsResult<()>, BusError>
pub fn blocking_rename( &self, from: String, to: String, ) -> Result<FsResult<()>, BusError>
pub fn blocking_remove_file( &self, path: String, ) -> Result<FsResult<()>, BusError>
pub fn blocking_read_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub fn blocking_read_symlink_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
pub fn blocking_open( &self, path: String, options: OpenOptions, ) -> Result<Arc<dyn OpenedFile>, BusError>
Trait Implementations§
Source§impl Clone for FileSystemClient
impl Clone for FileSystemClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSystemClient
impl Debug for FileSystemClient
Source§impl FileSystem for FileSystemClient
impl FileSystem for FileSystemClient
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FsResult<()>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_init(&self) -> Result<FsResult<()>, BusError>
fn read_dir<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<Dir>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_read_dir(&self, path: String) -> Result<FsResult<Dir>, BusError>
fn create_dir<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<Metadata>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_create_dir( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
fn remove_dir<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<()>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_remove_dir(&self, path: String) -> Result<FsResult<()>, BusError>
fn rename<'life0, 'async_trait>(
&'life0 self,
from: String,
to: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<()>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_rename( &self, from: String, to: String, ) -> Result<FsResult<()>, BusError>
fn remove_file<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<()>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_remove_file(&self, path: String) -> Result<FsResult<()>, BusError>
fn read_metadata<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<Metadata>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_read_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
fn read_symlink_metadata<'life0, 'async_trait>(
&'life0 self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<FsResult<Metadata>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_read_symlink_metadata( &self, path: String, ) -> Result<FsResult<Metadata>, BusError>
fn open<'life0, 'async_trait>(
&'life0 self,
path: String,
options: OpenOptions,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn OpenedFile>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_open( &self, path: String, options: OpenOptions, ) -> Result<Arc<dyn OpenedFile>, BusError>
fn as_client(&self) -> Option<FileSystemClient>
Source§impl Future for FileSystemClient
impl Future for FileSystemClient
Auto Trait Implementations§
impl Freeze for FileSystemClient
impl !RefUnwindSafe for FileSystemClient
impl Send for FileSystemClient
impl Sync for FileSystemClient
impl Unpin for FileSystemClient
impl !UnwindSafe for FileSystemClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more