pub struct ProcessPolicy {
pub workspace_root: PathBuf,
pub filesystem: FilesystemAccess,
pub allow_network: bool,
pub timeout: Duration,
pub output_limit: usize,
pub isolation: IsolationMode,
pub environment: BTreeMap<String, String>,
}Expand description
Auditable process policy. Network and filesystem authority are separate; neither is inferred from a command name.
Fields§
§workspace_root: PathBuf§filesystem: FilesystemAccess§allow_network: bool§timeout: Duration§output_limit: usize§isolation: IsolationMode§environment: BTreeMap<String, String>Implementations§
Source§impl ProcessPolicy
impl ProcessPolicy
pub fn inspection(workspace_root: impl Into<PathBuf>) -> Self
pub fn candidate_mutation(workspace_root: impl Into<PathBuf>) -> Self
pub fn with_network(self, allow: bool) -> Self
pub fn best_effort(self) -> Self
Trait Implementations§
Source§impl Clone for ProcessPolicy
impl Clone for ProcessPolicy
Source§fn clone(&self) -> ProcessPolicy
fn clone(&self) -> ProcessPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessPolicy
impl Debug for ProcessPolicy
Source§impl PartialEq for ProcessPolicy
impl PartialEq for ProcessPolicy
Source§fn eq(&self, other: &ProcessPolicy) -> bool
fn eq(&self, other: &ProcessPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProcessPolicy
impl StructuralPartialEq for ProcessPolicy
Auto Trait Implementations§
impl Freeze for ProcessPolicy
impl RefUnwindSafe for ProcessPolicy
impl Send for ProcessPolicy
impl Sync for ProcessPolicy
impl Unpin for ProcessPolicy
impl UnsafeUnpin for ProcessPolicy
impl UnwindSafe for ProcessPolicy
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