pub struct HostSandboxSession;Expand description
Runs rustup/cargo via temp directory export + sync (no persistent VM).
Implementations§
Trait Implementations§
Source§impl Clone for HostSandboxSession
impl Clone for HostSandboxSession
Source§fn clone(&self) -> HostSandboxSession
fn clone(&self) -> HostSandboxSession
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 moreSource§impl Debug for HostSandboxSession
impl Debug for HostSandboxSession
Source§impl Default for HostSandboxSession
impl Default for HostSandboxSession
Source§fn default() -> HostSandboxSession
fn default() -> HostSandboxSession
Returns the “default value” for a type. Read more
Source§impl VmExecutionSession for HostSandboxSession
impl VmExecutionSession for HostSandboxSession
Source§fn ensure_ready(&mut self, _vfs: &Vfs, _vfs_cwd: &str) -> Result<(), VmError>
fn ensure_ready(&mut self, _vfs: &Vfs, _vfs_cwd: &str) -> Result<(), VmError>
Prepare the session (e.g. start VM, initial push). No-op for host temp export.
Source§fn run_rust_tool(
&mut self,
vfs: &mut Vfs,
vfs_cwd: &str,
program: &str,
args: &[String],
) -> Result<ExitStatus, VmError>
fn run_rust_tool( &mut self, vfs: &mut Vfs, vfs_cwd: &str, program: &str, args: &[String], ) -> Result<ExitStatus, VmError>
Run
rustup or cargo with cwd matching vfs_cwd; update vfs as defined by the backend.impl Copy for HostSandboxSession
Auto Trait Implementations§
impl Freeze for HostSandboxSession
impl RefUnwindSafe for HostSandboxSession
impl Send for HostSandboxSession
impl Sync for HostSandboxSession
impl Unpin for HostSandboxSession
impl UnsafeUnpin for HostSandboxSession
impl UnwindSafe for HostSandboxSession
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