pub trait FutureSpec: Future {
// Required methods
spec fn obeys_future_laws(&self) -> bool;
spec fn view(&self) -> Self::Output;
}Required Methods§
Sourcespec fn obeys_future_laws(&self) -> bool
spec fn obeys_future_laws(&self) -> bool
Whether this future obeys the specification below on poll,
so that awaiting it returns view().
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".