Trait TestCondition

Source
pub trait TestCondition<H>: 'static {
    // Required methods
    fn check_now(
        &self,
        harness: &H,
        node: &KdlNode,
    ) -> Result<bool, TestErrorCase>;
    fn wait_until(
        &self,
        harness: &H,
        node: &KdlNode,
    ) -> Result<bool, TestErrorCase>;
    fn clone_box(&self) -> Box<dyn TestCondition<H>>;
}

Required Methods§

Source

fn check_now(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>

Source

fn wait_until(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>

Source

fn clone_box(&self) -> Box<dyn TestCondition<H>>

Trait Implementations§

Source§

impl<H: 'static> Clone for Box<dyn TestCondition<H>>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<H> TestCondition<H> for Condition<H>
where H: 'static,