pub struct AsyncAssert;Expand description
异步断言工具
Implementations§
Source§impl AsyncAssert
impl AsyncAssert
Sourcepub async fn eventually<F, Fut>(
condition: F,
timeout_duration: Duration,
check_interval: Duration,
) -> TestingResult<()>
pub async fn eventually<F, Fut>( condition: F, timeout_duration: Duration, check_interval: Duration, ) -> TestingResult<()>
等待条件满足
Sourcepub async fn eventually_with_value<F, Fut, T>(
condition: F,
timeout_duration: Duration,
check_interval: Duration,
) -> TestingResult<T>
pub async fn eventually_with_value<F, Fut, T>( condition: F, timeout_duration: Duration, check_interval: Duration, ) -> TestingResult<T>
等待条件满足并返回值
Auto Trait Implementations§
impl Freeze for AsyncAssert
impl RefUnwindSafe for AsyncAssert
impl Send for AsyncAssert
impl Sync for AsyncAssert
impl Unpin for AsyncAssert
impl UnsafeUnpin for AsyncAssert
impl UnwindSafe for AsyncAssert
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