Skip to main content

PreparedExt

Trait PreparedExt 

Source
pub trait PreparedExt {
    // Provided methods
    fn load<'e, Params, E: PgExecutor<'e>>(
        &self,
        executor: E,
        params: Params,
    ) -> impl Future<Output = Result<Vec<<Self as PreparedQuery<Params>>::Output>>>
       where Self: PreparedQuery<Params> { ... }
    fn load_one<'e, Params, E: PgExecutor<'e>>(
        &self,
        executor: E,
        params: Params,
    ) -> impl Future<Output = Result<Option<<Self as PreparedQuery<Params>>::Output>>>
       where Self: PreparedQuery<Params> { ... }
}
Expand description

The bound is on the method, and the impls are per-builder, for the two reasons LoadExt explains.

Provided Methods§

Source

fn load<'e, Params, E: PgExecutor<'e>>( &self, executor: E, params: Params, ) -> impl Future<Output = Result<Vec<<Self as PreparedQuery<Params>>::Output>>>
where Self: PreparedQuery<Params>,

Source

fn load_one<'e, Params, E: PgExecutor<'e>>( &self, executor: E, params: Params, ) -> impl Future<Output = Result<Option<<Self as PreparedQuery<Params>>::Output>>>
where Self: PreparedQuery<Params>,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<D, Params, Output> PreparedExt for Prepared<D, Params, Output>

Implementors§