Skip to main content

Assertion

Trait Assertion 

Source
pub trait Assertion:
    Send
    + Sync
    + Debug {
    // Required method
    fn evaluate<'a>(
        &'a self,
        ctx: AssertionContext<'a>,
    ) -> BoxFuture<'a, Outcome>;
}
Expand description

A check of one aspect of a run.

Required Methods§

Source

fn evaluate<'a>(&'a self, ctx: AssertionContext<'a>) -> BoxFuture<'a, Outcome>

Evaluate against a finished run.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§