pub struct FilesystemIsolationPolicy {
pub root: RootFilesystemMode,
pub workspace: WorkspaceMountPolicy,
pub mounts: Vec<MountPolicy>,
pub symlink_policy: SymlinkPolicy,
pub single_file_mount_expansion: SingleFileMountExpansionPolicy,
}Expand description
Describes the filesystem isolation policy portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§root: RootFilesystemModeRoot used by this record or request.
workspace: WorkspaceMountPolicyWorkspace used by this record or request.
mounts: Vec<MountPolicy>Collection of mounts values. Ordering and membership should be treated as part of the serialized contract when relevant.
symlink_policy: SymlinkPolicySymlink policy used by this record or request.
single_file_mount_expansion: SingleFileMountExpansionPolicyPolicy for expanding or denying single-file mounts while preparing isolation mount plans. Use it to keep file mounts deterministic and to avoid surprising directory exposure.
Implementations§
Source§impl FilesystemIsolationPolicy
impl FilesystemIsolationPolicy
Sourcepub fn no_workspace() -> Self
pub fn no_workspace() -> Self
Returns no workspace for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Sourcepub fn workspace(
workspace_ref: impl Into<String>,
mode: WorkspaceMountMode,
) -> Self
pub fn workspace( workspace_ref: impl Into<String>, mode: WorkspaceMountMode, ) -> Self
Returns an updated package::isolation value with workspace applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for FilesystemIsolationPolicy
impl Clone for FilesystemIsolationPolicy
Source§fn clone(&self) -> FilesystemIsolationPolicy
fn clone(&self) -> FilesystemIsolationPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilesystemIsolationPolicy
impl Debug for FilesystemIsolationPolicy
Source§impl<'de> Deserialize<'de> for FilesystemIsolationPolicy
impl<'de> Deserialize<'de> for FilesystemIsolationPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for FilesystemIsolationPolicy
impl PartialEq for FilesystemIsolationPolicy
Source§fn eq(&self, other: &FilesystemIsolationPolicy) -> bool
fn eq(&self, other: &FilesystemIsolationPolicy) -> bool
self and other values to be equal, and is used by ==.