Trait TestEnvironment

Source
pub trait TestEnvironment {
    // Required methods
    fn start(self) -> Self;
    fn block_on<F: Future>(&self, fut: F) -> F::Output;
    fn stop(self) -> Self;

    // Provided methods
    fn before_each_test(&self) { ... }
    fn after_each_test(&self) { ... }
}

Required Methods§

Source

fn start(self) -> Self

Source

fn block_on<F: Future>(&self, fut: F) -> F::Output

Source

fn stop(self) -> Self

Provided Methods§

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§