Trait wlan_common::test_utils::ExpectWithin
source · pub trait ExpectWithin: Future + Sized {
// Provided method
fn expect_within<S: ToString + Clone>(
self,
duration: Duration,
msg: S
) -> OnTimeout<Self, Box<dyn FnOnce() -> Self::Output>> { ... }
}
Expand description
A trait which allows to expect a future to terminate within a given time or panic otherwise.
Provided Methods§
fn expect_within<S: ToString + Clone>( self, duration: Duration, msg: S ) -> OnTimeout<Self, Box<dyn FnOnce() -> Self::Output>>
Object Safety§
This trait is not object safe.