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§
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>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".