pub struct StdWorkspaceFs;Expand description
Reads files and lists directories with the standard library.
No Tauri, no plugin: the OS filesystem is reachable from plain Rust, and the
allowlist/containment check in this adapter is the security boundary. ADR-0007
still applies to the frontend, which never gets fs:* — it goes through the
transport and the application services.
Implementations§
Trait Implementations§
Source§impl Clone for StdWorkspaceFs
impl Clone for StdWorkspaceFs
Source§fn clone(&self) -> StdWorkspaceFs
fn clone(&self) -> StdWorkspaceFs
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 moreimpl Copy for StdWorkspaceFs
Source§impl Debug for StdWorkspaceFs
impl Debug for StdWorkspaceFs
Source§impl Default for StdWorkspaceFs
impl Default for StdWorkspaceFs
Source§fn default() -> StdWorkspaceFs
fn default() -> StdWorkspaceFs
Returns the “default value” for a type. Read more
Source§impl WorkspaceFs for StdWorkspaceFs
impl WorkspaceFs for StdWorkspaceFs
Source§fn list_dir<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
path: &'life2 RelPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_dir<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
path: &'life2 RelPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List the contents of a directory within
root.Source§fn read_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
path: &'life2 RelPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
path: &'life2 RelPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read the contents of a file within
root.Auto Trait Implementations§
impl Freeze for StdWorkspaceFs
impl RefUnwindSafe for StdWorkspaceFs
impl Send for StdWorkspaceFs
impl Sync for StdWorkspaceFs
impl Unpin for StdWorkspaceFs
impl UnsafeUnpin for StdWorkspaceFs
impl UnwindSafe for StdWorkspaceFs
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