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 Forget for RunConfig
impl Freeze for RunConfigwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, SandboxPolicy> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SandboxPolicy)>>: Freeze,
impl Move for RunConfig
impl RefUnwindSafe for RunConfig
impl Send for RunConfigwhere
RawVecInner: Send,
NodeRef<Owned, String, SandboxPolicy, LeafOrInternal>: Send,
BoxRaw<(String, SandboxPolicy)>: Send,
impl Sync for RunConfigwhere
RawVecInner: Sync,
NodeRef<Owned, String, SandboxPolicy, LeafOrInternal>: Sync,
BoxRaw<(String, SandboxPolicy)>: Sync,
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, SandboxPolicy> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SandboxPolicy)>>: UnsafeUnpin,
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