pub trait ResultExt<T> {
// Required method
fn with_query<F>(self, ctx: F) -> Result<T>
where F: FnOnce() -> QueryContext;
}Expand description
Attaches SQL and parameter context to a database error.
Required Methods§
Sourcefn with_query<F>(self, ctx: F) -> Result<T>where
F: FnOnce() -> QueryContext,
fn with_query<F>(self, ctx: F) -> Result<T>where
F: FnOnce() -> QueryContext,
Attach SQL and parameter context lazily on the error path.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".