Skip to main content

TxFuture

Type Alias TxFuture 

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

A transaction attempt body’s return type — boxed since a plain generic Fut: Future can’t express “this future borrows the &Transaction it was handed” without higher-ranked lifetimes on the future type itself; boxing sidesteps that and matches how most async-closure-taking APIs in the ecosystem handle exactly this shape.

Aliased Type§

#[repr(transparent)]
pub struct TxFuture<'a, T> { /* private fields */ }