pub struct AsyncShrinkEngine { /* private fields */ }Expand description
Async shrinking engine that coordinates the shrinking process for async properties
Implementations§
Source§impl AsyncShrinkEngine
impl AsyncShrinkEngine
Sourcepub fn with_config(config: ShrinkConfig) -> Self
pub fn with_config(config: ShrinkConfig) -> Self
Create a new async shrinking engine with custom configuration
Sourcepub async fn shrink<T, F, Fut>(&self, value: T, property: F) -> ShrinkResult<T>
pub async fn shrink<T, F, Fut>(&self, value: T, property: F) -> ShrinkResult<T>
Shrink a value using an async property test function
Sourcepub async fn shrink_with_strategy<T, F, Fut, S>(
&self,
value: T,
property: F,
strategy: S,
) -> ShrinkResult<T>
pub async fn shrink_with_strategy<T, F, Fut, S>( &self, value: T, property: F, strategy: S, ) -> ShrinkResult<T>
Shrink a value with a custom async shrinking strategy
Sourcepub async fn shrink_with_timeout<T, F, Fut>(
&self,
value: T,
property: F,
timeout: Duration,
) -> ShrinkResult<T>
pub async fn shrink_with_timeout<T, F, Fut>( &self, value: T, property: F, timeout: Duration, ) -> ShrinkResult<T>
Shrink a value with timeout-based cancellation support
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncShrinkEngine
impl RefUnwindSafe for AsyncShrinkEngine
impl Send for AsyncShrinkEngine
impl Sync for AsyncShrinkEngine
impl Unpin for AsyncShrinkEngine
impl UnwindSafe for AsyncShrinkEngine
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