Trait sqlx_core::testing::TestFn

source ·
pub trait TestFn {
    type Output;

    // Required method
    fn run_test(self, args: TestArgs) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn run_test(self, args: TestArgs) -> Self::Output

Implementations on Foreign Types§

source§

impl<DB, Fut> TestFn for fn(_: PoolConnection<DB>) -> Futwhere DB: TestSupport + Database, DB::Connection: Migrate, for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, Fut: Future, Fut::Output: TestTermination,

§

type Output = <Fut as Future>::Output

source§

fn run_test(self, args: TestArgs) -> Self::Output

source§

impl<Fut> TestFn for fn() -> Futwhere Fut: Future,

§

type Output = <Fut as Future>::Output

source§

fn run_test(self, args: TestArgs) -> Self::Output

source§

impl<DB, Fut> TestFn for fn(_: PoolOptions<DB>, _: <DB::Connection as Connection>::Options) -> Futwhere DB: Database + TestSupport, DB::Connection: Migrate, for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, Fut: Future, Fut::Output: TestTermination,

§

type Output = <Fut as Future>::Output

source§

fn run_test(self, args: TestArgs) -> Self::Output

source§

impl<DB, Fut> TestFn for fn(_: Pool<DB>) -> Futwhere DB: TestSupport + Database, DB::Connection: Migrate, for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, Fut: Future, Fut::Output: TestTermination,

§

type Output = <Fut as Future>::Output

source§

fn run_test(self, args: TestArgs) -> Self::Output

Implementors§