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§

source

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.

Implementors§