pub struct FileSystem { /* private fields */ }Implementations§
Source§impl FileSystem
impl FileSystem
pub async fn mount(wapm: &str, name: &str) -> FsResult<FileSystem>
pub async fn mount_instance( instance: &str, access_token: &str, wapm: &str, name: &str, ) -> FsResult<FileSystem>
pub async fn read_dir(&self, path: &Path) -> FsResult<Dir>
pub async fn create_dir(&self, path: &Path) -> FsResult<Metadata>
pub async fn remove_dir(&self, path: &Path) -> FsResult<()>
pub async fn rename(&self, from: &Path, to: &Path) -> FsResult<()>
pub async fn metadata(&self, path: &Path) -> FsResult<Metadata>
pub async fn symlink_metadata(&self, path: &Path) -> FsResult<Metadata>
pub async fn remove_file(&self, path: &Path) -> FsResult<()>
pub fn new_open_options(&self) -> OpenOptions
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for FileSystem
impl !RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl !UnwindSafe for FileSystem
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