pub trait DbRequest: Sized {
type Output;
// Required method
fn prepare(self) -> Prepared<Self::Output>;
// Provided method
async fn send_with(self, db: &Database) -> Result<Self::Output, Error> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".