pub struct VerificationRunner { /* private fields */ }Expand description
Verification runner for async check execution
Implementations§
Source§impl VerificationRunner
impl VerificationRunner
Sourcepub fn new(board: Arc<HypothesisBoard>, max_concurrent: usize) -> Self
pub fn new(board: Arc<HypothesisBoard>, max_concurrent: usize) -> Self
Create a new verification runner
Sourcepub async fn register_check(
&self,
name: String,
hypothesis_id: HypothesisId,
command: VerificationCommand,
timeout: Duration,
on_pass: Option<PassAction>,
on_fail: Option<FailAction>,
) -> Result<CheckId>
pub async fn register_check( &self, name: String, hypothesis_id: HypothesisId, command: VerificationCommand, timeout: Duration, on_pass: Option<PassAction>, on_fail: Option<FailAction>, ) -> Result<CheckId>
Register a verification check
Sourcepub async fn get_status(&self, check_id: CheckId) -> Option<CheckStatus>
pub async fn get_status(&self, check_id: CheckId) -> Option<CheckStatus>
Get status of a check
Sourcepub async fn list_checks(&self) -> Vec<(CheckId, CheckStatus)>
pub async fn list_checks(&self) -> Vec<(CheckId, CheckStatus)>
List all checks
Sourcepub async fn execute_checks(
&self,
check_ids: Vec<CheckId>,
) -> Vec<(CheckId, CheckResult)>
pub async fn execute_checks( &self, check_ids: Vec<CheckId>, ) -> Vec<(CheckId, CheckResult)>
Execute multiple checks in parallel
Auto Trait Implementations§
impl Freeze for VerificationRunner
impl !RefUnwindSafe for VerificationRunner
impl Send for VerificationRunner
impl Sync for VerificationRunner
impl Unpin for VerificationRunner
impl UnsafeUnpin for VerificationRunner
impl !UnwindSafe for VerificationRunner
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more