wlan_common::test_utils

Trait ExpectWithin

Source
pub trait ExpectWithin: Future + Sized {
    // Provided method
    fn expect_within<S: ToString + Clone>(
        self,
        duration: MonotonicDuration,
        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§

Source

fn expect_within<S: ToString + Clone>( self, duration: MonotonicDuration, msg: S, ) -> OnTimeout<Self, Box<dyn FnOnce() -> Self::Output>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§