pub struct GammaSession { /* private fields */ }Expand description
Lima-backed session: sync VFS ↔ host workspace, run tools inside the VM.
Implementations§
Source§impl GammaSession
impl GammaSession
Sourcepub fn new(config: &VmConfig) -> Result<Self, VmError>
pub fn new(config: &VmConfig) -> Result<Self, VmError>
Build a γ session from VM config (does not start the VM yet).
§Errors
Returns VmError::Lima if limactl cannot be resolved.
Sourcepub fn workspace_parent(&self) -> &Path
pub fn workspace_parent(&self) -> &Path
Host workspace root (for docs / debugging).
Trait Implementations§
Source§impl Debug for GammaSession
impl Debug for GammaSession
Source§impl VmExecutionSession for GammaSession
impl VmExecutionSession for GammaSession
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.Auto Trait Implementations§
impl Freeze for GammaSession
impl RefUnwindSafe for GammaSession
impl Send for GammaSession
impl Sync for GammaSession
impl Unpin for GammaSession
impl UnsafeUnpin for GammaSession
impl UnwindSafe for GammaSession
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