pub enum Adapter {
Exit,
Empty,
Match {
ok: Option<String>,
err: Option<String>,
},
}Expand description
How a probe’s outcome is read as a verdict. Observers speak the suite’s
exit contract (Exit); bridge tools need an adapter.
Variants§
Exit
Exit status under the suite contract: 0 holds, 1 violated,
anything else broken. The default.
Empty
Holds iff the probe exited 0 and printed nothing to stdout
(whitespace ignored); exited 0 with output = violated; nonzero =
broken. The cargo tree -d shape.
Match
ct-test-style matchers over the captured streams, with identical
promotion and fail-closed precedence: an err hit is decisively a
violation; an ok hit decisively holds; a supplied ok that did not
appear is a violation; otherwise fall back to Exit.
Implementations§
Trait Implementations§
impl Eq for Adapter
impl StructuralPartialEq for Adapter
Auto Trait Implementations§
impl Freeze for Adapter
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
impl UnwindSafe for Adapter
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