pub struct ResolvedExecutionProfile {
pub name: String,
pub mode: ExecutionProfileMode,
pub fs_mode: ExecutionFsMode,
pub writable_paths: Vec<PathBuf>,
pub network_mode: ExecutionNetworkMode,
pub network_allowlist: Vec<String>,
pub max_memory_mb: Option<u64>,
pub max_cpu_seconds: Option<u64>,
pub max_processes: Option<u64>,
pub max_open_files: Option<u64>,
}Expand description
Execution profile after resolving workspace-relative paths and inherited defaults.
Fields§
§name: StringName of the execution profile that produced this resolved view.
mode: ExecutionProfileModeWhether commands run on the host or inside a sandbox backend.
fs_mode: ExecutionFsModeFilesystem policy enforced by the execution backend.
writable_paths: Vec<PathBuf>Paths that remain writable when sandboxing is enabled.
network_mode: ExecutionNetworkModeNetwork policy enforced by the execution backend.
network_allowlist: Vec<String>Raw allowlist entries used when network_mode=allowlist.
max_memory_mb: Option<u64>Optional memory limit in MiB.
max_cpu_seconds: Option<u64>Optional CPU time limit in seconds.
max_processes: Option<u64>Optional maximum process count.
max_open_files: Option<u64>Optional file-descriptor limit.
Implementations§
Source§impl ResolvedExecutionProfile
impl ResolvedExecutionProfile
Sourcepub fn from_config(
name: &str,
config: &ExecutionProfileConfig,
workspace_root: &Path,
always_writable: &[PathBuf],
) -> Self
pub fn from_config( name: &str, config: &ExecutionProfileConfig, workspace_root: &Path, always_writable: &[PathBuf], ) -> Self
Resolves a configured execution profile against the workspace root.
Trait Implementations§
Source§impl Clone for ResolvedExecutionProfile
impl Clone for ResolvedExecutionProfile
Source§fn clone(&self) -> ResolvedExecutionProfile
fn clone(&self) -> ResolvedExecutionProfile
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 moreAuto Trait Implementations§
impl Freeze for ResolvedExecutionProfile
impl RefUnwindSafe for ResolvedExecutionProfile
impl Send for ResolvedExecutionProfile
impl Sync for ResolvedExecutionProfile
impl Unpin for ResolvedExecutionProfile
impl UnsafeUnpin for ResolvedExecutionProfile
impl UnwindSafe for ResolvedExecutionProfile
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