pub struct EchoSandbox {
pub seen: Vec<SandboxJob>,
/* private fields */
}Expand description
A pass-through stand-in: stdout echoes stdin, plus whatever script output the test queued. Used where the test is about the caller’s logic rather than the boundary.
Fields§
§seen: Vec<SandboxJob>Implementations§
Source§impl EchoSandbox
impl EchoSandbox
pub fn new() -> EchoSandbox
pub fn queue_stdout(&mut self, bytes: Vec<u8>)
Trait Implementations§
Source§impl Default for EchoSandbox
impl Default for EchoSandbox
Source§impl Sandbox for EchoSandbox
impl Sandbox for EchoSandbox
fn run(&mut self, job: &SandboxJob) -> Result<SandboxOutcome, AxError>
Auto Trait Implementations§
impl Freeze for EchoSandbox
impl RefUnwindSafe for EchoSandbox
impl Send for EchoSandbox
impl Sync for EchoSandbox
impl Unpin for EchoSandbox
impl UnsafeUnpin for EchoSandbox
impl UnwindSafe for EchoSandbox
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