pub trait ReadyBoolExt{
// Provided methods
fn is_false(self) -> impl Future<Output = bool> + Send { ... }
fn is_true(self) -> impl Future<Output = bool> + Send { ... }
}Expand description
Tests the Boolean output of a future without awaiting it early.
The helpers attach equality comparisons to the future. Each returned future resolves to the requested truth-state test.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".