pub trait BlockOnFuture {
type Output;
// Required method
fn block(self) -> Self::Output;
}Expand description
Marker trait to block on futures in synchronous code.
This is a simple convenience. Many of the tests in this crate render something and then read a texture in order to perform a diff on the result using a known image. Since reading from the GPU is async, this trait helps cut down boilerplate.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".