Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = Result<T, CategoryError>> + Send + 'a>>;
Expand description

The boxed future every service method returns: object-safe, Send, and resolving to Result<T, CategoryError>. See the module-level documentation for why this is not native async fn in traits.

Aliased Typeยง

pub struct BoxFuture<'a, T> { /* private fields */ }