Skip to main content

AsyncPreflight

Type Alias AsyncPreflight 

Source
pub type AsyncPreflight = Arc<dyn Fn(Arc<DbContextOptions>) -> AsyncPreflightFuture + Send + Sync>;
Expand description

Async hook run during build_async after the provider (connection pool) has been created for an async DbContext registration.

Used by DbContextOptionsBuilder::async_preflight and add_dbcontext_async*; synchronous registrations ignore it.

Aliased Typeยง

pub struct AsyncPreflight { /* private fields */ }