pub struct LocalOs { /* private fields */ }Expand description
Direct passthrough to the real OS (no isolation).
Implementations§
Trait Implementations§
Source§impl Os for LocalOs
impl Os for LocalOs
fn name(&self) -> &str
fn cwd(&self) -> &Path
Source§fn resolve(&self, path: &Path) -> Result<PathBuf, OsError>
fn resolve(&self, path: &Path) -> Result<PathBuf, OsError>
Resolve a user-supplied path under the implementation’s working
directory policy. LocalOs:
safe_resolve (cwd-confined, lexical). Read morefn read<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, OsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_text<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<String, OsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 Path,
data: &'life2 [u8],
mode: WriteMode,
) -> Pin<Box<dyn Future<Output = Result<(), OsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn mkdir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
parents: bool,
) -> Pin<Box<dyn Future<Output = Result<(), OsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exec<'life0, 'async_trait>(
&'life0 self,
spec: ExecSpec,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn OsProcess>, OsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalOs
impl RefUnwindSafe for LocalOs
impl Send for LocalOs
impl Sync for LocalOs
impl Unpin for LocalOs
impl UnsafeUnpin for LocalOs
impl UnwindSafe for LocalOs
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