pub struct FaultSandbox { /* private fields */ }Expand description
A fault stand-in: pops a scripted outcome per call, so a caller’s handling of exhaustion and traps is testable without provoking the real engine into either.
Implementations§
Source§impl FaultSandbox
impl FaultSandbox
pub fn new(scripted: Vec<SandboxExit>) -> FaultSandbox
Trait Implementations§
Source§impl Sandbox for FaultSandbox
impl Sandbox for FaultSandbox
fn run(&mut self, _job: &SandboxJob) -> Result<SandboxOutcome, AxError>
Auto Trait Implementations§
impl Freeze for FaultSandbox
impl RefUnwindSafe for FaultSandbox
impl Send for FaultSandbox
impl Sync for FaultSandbox
impl Unpin for FaultSandbox
impl UnsafeUnpin for FaultSandbox
impl UnwindSafe for FaultSandbox
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