pub enum Oracle {
OutputContains {
marker: String,
},
SinkProbe {
sentinel_path: String,
expect_contains: Option<String>,
},
}Expand description
Differential-rule oracle predicates the payload runner can evaluate.
OutputContains is the simplest sink probe: scan the sandboxed
child’s stdout + stderr for a string marker. SinkProbe adds a
sentinel-file path the harness writes to when its instrumented sink
fires; the runner checks both the file’s existence and (optionally)
its contents.
Variants§
OutputContains
Trip when marker appears in captured stdout/stderr.
SinkProbe
Trip when sentinel_path exists after the run. When
expect_contains is set, additionally require the file’s
contents to include that substring.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Oracle
impl<'de> Deserialize<'de> for Oracle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Oracle
impl StructuralPartialEq for Oracle
Auto Trait Implementations§
impl Freeze for Oracle
impl RefUnwindSafe for Oracle
impl Send for Oracle
impl Sync for Oracle
impl Unpin for Oracle
impl UnsafeUnpin for Oracle
impl UnwindSafe for Oracle
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