Skip to main content

PgPoolSelector

Trait PgPoolSelector 

Source
pub trait PgPoolSelector<C>: Send + Sync {
    // Required method
    fn select_pool(
        &self,
        entity: &'static EntityMeta,
        context: &C,
    ) -> Result<String, PoolRouteError>;
}
Expand description

Application-owned, nonblocking resolver for trusted request context. Client query parameters are never supplied to this hook.

Required Methods§

Source

fn select_pool( &self, entity: &'static EntityMeta, context: &C, ) -> Result<String, PoolRouteError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§