Skip to main content

OpenSessionFuture

Type Alias OpenSessionFuture 

Source
pub type OpenSessionFuture<'a> = Pin<Box<dyn Future<Output = Result<Arc<dyn TransactionSession>, TransactionError>> + Send + 'a>>;
Expand description

Boxed future resolving to a new TransactionSession.

Hand-typed like crate::datasource::GetPoolFuture so the trait stays object safe without an async_trait dependency.

Aliased Typeยง

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