Skip to main content

ResourceFuture

Type Alias ResourceFuture 

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

One async-init-and-close return type used by the trait. Returns a Send future so the pool can hold it across .await points without runtime fuss.

Aliased Typeยง

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