pub struct RunConfig { /* private fields */ }Expand description
Parsed checked-in run policy with deterministic per-script overrides.
Implementations§
Source§impl RunConfig
impl RunConfig
pub fn parse_toml(input: &str) -> Result<Self, ConfigError>
Sourcepub fn parse_toml_bytes(input: &[u8]) -> Result<Self, ConfigError>
pub fn parse_toml_bytes(input: &[u8]) -> Result<Self, ConfigError>
Parses UTF-8 TOML after enforcing the input byte ceiling before deserialization.
pub fn defaults(&self) -> &SandboxPolicy
Sourcepub fn exact_profile(&self, script: &str) -> Option<&SandboxPolicy>
pub fn exact_profile(&self, script: &str) -> Option<&SandboxPolicy>
Returns the exact per-script profile without falling back to defaults.
Sourcepub fn profile_for(&self, script: &str) -> SandboxPolicy
pub fn profile_for(&self, script: &str) -> SandboxPolicy
Returns the exact script profile, or a clone of defaults when no override exists.
Trait Implementations§
impl Eq for RunConfig
impl StructuralPartialEq for RunConfig
Auto Trait Implementations§
impl Freeze for RunConfig
impl RefUnwindSafe for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
impl UnwindSafe for RunConfig
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