Skip to main content

StepFuture

Type Alias StepFuture 

Source
pub type StepFuture<T> = Pin<Box<dyn Future<Output = Result<T, StepError>> + Send>>;
Expand description

Type alias for the future returned by async step functions.

This simplifies signatures that would otherwise need:

Fut: Future<Output = Result<T, Box<dyn std::error::Error + Send + Sync>>> + Send

Aliased Typeยง

pub struct StepFuture<T> { /* private fields */ }