pub struct LiveProcessBackend { /* private fields */ }Implementations§
Source§impl LiveProcessBackend
impl LiveProcessBackend
Sourcepub fn new(
workspace_root: impl Into<PathBuf>,
mode: ProcessBackendMode,
options: ProcessBackendOptions,
) -> Result<Self, ProcessBackendError>
pub fn new( workspace_root: impl Into<PathBuf>, mode: ProcessBackendMode, options: ProcessBackendOptions, ) -> Result<Self, ProcessBackendError>
Creates a live-swappable local process backend.
§Errors
Returns a ProcessBackendError when the initial backend configuration
is invalid or the requested isolated sandbox is unavailable.
Sourcepub fn from_session(session: ProcessSession) -> Self
pub fn from_session(session: ProcessSession) -> Self
Wraps a fixed process session (primarily for tests and custom adapters).
Sourcepub fn prepare_replace(
&self,
workspace_root: impl Into<PathBuf>,
mode: ProcessBackendMode,
options: ProcessBackendOptions,
clear_policy: SessionGrantClearPolicy,
) -> Result<PreparedLiveReplace<'_>, ProcessBackendError>
pub fn prepare_replace( &self, workspace_root: impl Into<PathBuf>, mode: ProcessBackendMode, options: ProcessBackendOptions, clear_policy: SessionGrantClearPolicy, ) -> Result<PreparedLiveReplace<'_>, ProcessBackendError>
Validates and prepares a replacement backend configuration without
mutating live state or clearing session grants until
PreparedLiveReplace::commit is called.
§Errors
Returns a ProcessBackendError when the new configuration is invalid
or the requested isolated sandbox is unavailable.
Sourcepub fn replace(
&self,
workspace_root: impl Into<PathBuf>,
mode: ProcessBackendMode,
options: ProcessBackendOptions,
) -> Result<ProcessSession, ProcessBackendError>
pub fn replace( &self, workspace_root: impl Into<PathBuf>, mode: ProcessBackendMode, options: ProcessBackendOptions, ) -> Result<ProcessSession, ProcessBackendError>
Validates and installs a replacement backend configuration, returning a
new parent ProcessSession sharing the existing background supervisor,
unified live policy handle, and a freshly cleared session permission store.
If validation fails, the active backend and retained session permissions remain unchanged.
§Errors
Returns a ProcessBackendError when the new configuration is invalid
or the requested isolated sandbox is unavailable.