#[non_exhaustive]pub struct RunOptions {
pub profile: ConformanceProfile,
pub filter: Option<String>,
pub invocation_timeout: Duration,
pub concurrency: NonZeroUsize,
}Expand description
Options controlling one suite execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.profile: ConformanceProfileCompatibility profile to execute.
filter: Option<String>Optional substring matched against stable case identifiers.
invocation_timeout: DurationDefault timeout applied to each candidate invocation.
concurrency: NonZeroUsizeMaximum number of conformance cases executed at once.
The default is one so existing callers retain serial execution.
Implementations§
Source§impl RunOptions
impl RunOptions
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Returns options for the full profile with no filter, a 30-second timeout, and serial execution.
Sourcepub const fn with_profile(self, profile: ConformanceProfile) -> Self
pub const fn with_profile(self, profile: ConformanceProfile) -> Self
Selects the compatibility profile to execute.
Sourcepub fn with_filter(self, filter: impl Into<String>) -> Self
pub fn with_filter(self, filter: impl Into<String>) -> Self
Restricts execution to case identifiers containing filter.
Sourcepub const fn with_invocation_timeout(self, timeout: Duration) -> Self
pub const fn with_invocation_timeout(self, timeout: Duration) -> Self
Sets the default timeout applied to each candidate invocation.
Sourcepub const fn with_concurrency(self, concurrency: NonZeroUsize) -> Self
pub const fn with_concurrency(self, concurrency: NonZeroUsize) -> Self
Sets the maximum number of conformance cases executed at once.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Source§impl Default for RunOptions
impl Default for RunOptions
impl Eq for RunOptions
Source§impl PartialEq for RunOptions
impl PartialEq for RunOptions
impl StructuralPartialEq for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.