Skip to main content

try_session_rc

Function try_session_rc 

Source
pub fn try_session_rc(
    stderr: &mut dyn Write,
) -> Result<Rc<RefCell<SessionHolder>>, VmSessionInitError>
Expand description

Build SessionHolder from the environment.

On failure (e.g. default γ Lima but limactl missing), writes to stderr and returns an error. Use DEVSHELL_VM=off or DEVSHELL_VM_BACKEND=host to force the host temp sandbox.

§Errors

Returns VmSessionInitError when backend session construction fails.