Skip to main content

FutureSpec

Trait FutureSpec 

Source
pub trait FutureSpec: Future {
    // Required methods
    spec fn obeys_future_laws(&self) -> bool;
    spec fn view(&self) -> Self::Output;
}

Required Methods§

Source

spec fn obeys_future_laws(&self) -> bool

Whether this future obeys the specification below on poll, so that awaiting it returns view().

Source

spec fn view(&self) -> Self::Output

The value that awaiting this future will return.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<VERUS_SPEC__A: Future + ?Sized> FutureSpec for VERUS_SPEC__A