pub struct Condition<H> { /* private fields */ }Expand description
A condition that can be used in test-cases
Depending on how it is constructed, it may or may not be able to be used in direct or waiting contexts
Implementations§
Trait Implementations§
Source§impl<H> TestCondition<H> for Condition<H>where
H: 'static,
impl<H> TestCondition<H> for Condition<H>where
H: 'static,
Source§fn check_now(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>
fn check_now(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>
Run the check now, may or may not actually be implemented Read more
Source§fn wait_until(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>
fn wait_until(&self, harness: &H, node: &KdlNode) -> Result<bool, TestErrorCase>
Wait until a given condition evaluates to a meaningful value Read more
Source§fn clone_box(&self) -> Box<dyn TestCondition<H>>
fn clone_box(&self) -> Box<dyn TestCondition<H>>
Clone the condition
Auto Trait Implementations§
impl<H> Freeze for Condition<H>
impl<H> !RefUnwindSafe for Condition<H>
impl<H> !Send for Condition<H>
impl<H> !Sync for Condition<H>
impl<H> Unpin for Condition<H>
impl<H> !UnwindSafe for Condition<H>
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