pub struct IoExe;Expand description
Access to the path where the exe is stored.
Trait Implementations§
Source§impl FileSystemIsolated for IoExe
impl FileSystemIsolated for IoExe
type HostFileSystem = IoGlobal
Source§fn isolated_root(&mut self) -> PathBuf
fn isolated_root(&mut self) -> PathBuf
The root of this isolated file system.
Cant only read and write file/dir inside this root.
fn non_isolated_file_system() -> Self::HostFileSystem
Source§impl FileSystemProvider for IoExe
impl FileSystemProvider for IoExe
type FileSystem = IoExe
fn file_system() -> Self::FileSystem
Auto Trait Implementations§
impl Freeze for IoExe
impl RefUnwindSafe for IoExe
impl Send for IoExe
impl Sync for IoExe
impl Unpin for IoExe
impl UnsafeUnpin for IoExe
impl UnwindSafe for IoExe
Blanket Implementations§
Source§impl<T> AnyAsync for Twhere
T: Any + WasmSendSync + 'static,
impl<T> AnyAsync for Twhere
T: Any + WasmSendSync + 'static,
impl<T> Async for T
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> DefaultIsTripleUnderscore for Twhere
T: Default,
impl<T> DefaultIsTripleUnderscore for Twhere
T: Default,
impl<F> FileSystem for Fwhere
F: FileSystemDynWrite + FileSystemDynRead,
Source§impl<T> FileSystemRead for Twhere
T: FileSystemDynRead,
impl<T> FileSystemRead for Twhere
T: FileSystemDynRead,
Source§fn try_exist<P: AsRef<Path>>(&mut self, path: P) -> IoResult<bool>
fn try_exist<P: AsRef<Path>>(&mut self, path: P) -> IoResult<bool>
Resolve the path anc check if it exist.
Source§fn try_exist_at<P: AsRef<Path>>(&mut self, path: P) -> IoResult<bool>
fn try_exist_at<P: AsRef<Path>>(&mut self, path: P) -> IoResult<bool>
Check if the path exist.
Source§fn read_bytes_at<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Cow<'static, [u8]>>
fn read_bytes_at<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Cow<'static, [u8]>>
Read the file at path.
Source§fn read_dir_at<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Vec<IoResult<PathBuf>>>
fn read_dir_at<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Vec<IoResult<PathBuf>>>
Read the contents of a directory at the given path.
Source§fn read_link_at<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Vec<IoResult<PathBuf>>>
fn read_link_at<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Vec<IoResult<PathBuf>>>
Read the link at the given path.
Source§fn read_bytes<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Cow<'static, [u8]>>
fn read_bytes<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Cow<'static, [u8]>>
Read the file at the resolved path.
Source§fn read_dir<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Vec<IoResult<PathBuf>>>
fn read_dir<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Vec<IoResult<PathBuf>>>
Read the contents of a directory at the given resolved path.
Source§fn read_link<P: AsRef<Path>>(
&mut self,
path: P,
) -> IoResult<Vec<IoResult<PathBuf>>>
fn read_link<P: AsRef<Path>>( &mut self, path: P, ) -> IoResult<Vec<IoResult<PathBuf>>>
Read the link at the given resolved path.
fn file_type_at<P: AsRef<Path>>(&mut self, path: P) -> IoResult<FileType>
fn file_type<P: AsRef<Path>>(&mut self, path: P) -> IoResult<FileType>
Source§fn resolve_paths<P: AsRef<Path>>(&mut self, path: P) -> IoResult<Vec<PathBuf>>
fn resolve_paths<P: AsRef<Path>>(&mut self, path: P) -> IoResult<Vec<PathBuf>>
Given a path to a file, return all occurence of the file on the disk with the same name, regardless of the extension.
If the path already have an extension, return it.
Source§impl<T> FileSystemWrite for Twhere
T: FileSystem,
impl<T> FileSystemWrite for Twhere
T: FileSystem,
Source§fn write_bytes_at<P: AsRef<Path>>(&mut self, path: P, value: &[u8]) -> IoResult
fn write_bytes_at<P: AsRef<Path>>(&mut self, path: P, value: &[u8]) -> IoResult
Write bytes at a file at the given path.
If the file or any of the parent directory don’t exist, create it.
Source§fn write_bytes<P: AsRef<Path>>(
&mut self,
path: P,
value: &[u8],
) -> IoResult<PathBuf>
fn write_bytes<P: AsRef<Path>>( &mut self, path: P, value: &[u8], ) -> IoResult<PathBuf>
Write bytes at a file at the given resolved path.
If the file or any of the parent directory don’t exist, create it.
Source§fn create_dir<P: AsRef<Path>>(&mut self, path: P) -> IoResult
fn create_dir<P: AsRef<Path>>(&mut self, path: P) -> IoResult
Create recursively all dir in the path.
If any element is a file on the way, delete it.
Source§fn remove_at<P: AsRef<Path>>(&mut self, path: P) -> IoResult
fn remove_at<P: AsRef<Path>>(&mut self, path: P) -> IoResult
Remove any file or folder recursively at the path.
Source§fn remove<P: AsRef<Path>>(&mut self, path: P) -> IoResult<PathBuf>
fn remove<P: AsRef<Path>>(&mut self, path: P) -> IoResult<PathBuf>
Remove any file or folder recursively at the resolved path.