Skip to main content

WaitCondition

Trait WaitCondition 

Source
pub trait WaitCondition: Send + Sync {
    // Required methods
    fn check(&self) -> bool;
    fn description(&self) -> String;
}
Expand description

Trait for custom wait conditions

Required Methods§

Source

fn check(&self) -> bool

Check if the condition is satisfied

Source

fn description(&self) -> String

Get description for error messages

Implementors§