Skip to main content

LazyComputation

Trait LazyComputation 

Source
pub trait LazyComputation<T>: Send + Sync {
    // Required method
    fn compute(&self) -> Pin<Box<dyn Future<Output = Result<T>> + Send + '_>>;
}
Expand description

Trait for lazy computations

Required Methods§

Source

fn compute(&self) -> Pin<Box<dyn Future<Output = Result<T>> + Send + '_>>

Implementors§