pub struct SimulationIsolation;Expand description
Defense 5: Simulation isolation verification.
Ensures that simulation environments cannot mutate actual state or access files.
Implementations§
Source§impl SimulationIsolation
impl SimulationIsolation
Sourcepub fn verify_isolation(
context_vars: &BTreeMap<String, String>,
allowed_types: &[&str],
) -> ThreatResult<()>
pub fn verify_isolation( context_vars: &BTreeMap<String, String>, allowed_types: &[&str], ) -> ThreatResult<()>
Verify that a simulation context is properly isolated.
§Security Property
Ensures simulation:
- Only uses in-memory data structures (BTreeMap, Vec)
- Makes no file system calls
- Doesn’t mutate external state
- Results are deterministic
Auto Trait Implementations§
impl Freeze for SimulationIsolation
impl RefUnwindSafe for SimulationIsolation
impl Send for SimulationIsolation
impl Sync for SimulationIsolation
impl Unpin for SimulationIsolation
impl UnsafeUnpin for SimulationIsolation
impl UnwindSafe for SimulationIsolation
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