pub struct Defective<'a, R> { /* private fields */ }Expand description
A backend with one Defect injected. The wrapped backend does the work.
Implementations§
Trait Implementations§
Source§impl<R: RelationalBackend> RelationalBackend for Defective<'_, R>
impl<R: RelationalBackend> RelationalBackend for Defective<'_, R>
Source§type Tx<'a> = DefectiveTx<'a, R>
where
Self: 'a
type Tx<'a> = DefectiveTx<'a, R> where Self: 'a
A transaction on this backend. Dropping it without
commit rolls it back.Source§async fn execute(&self, sql: &str, params: &[Value]) -> Result<u64, RelError>
async fn execute(&self, sql: &str, params: &[Value]) -> Result<u64, RelError>
Run a statement that returns no rows; the result is the number of rows affected.
Auto Trait Implementations§
impl<'a, R> Freeze for Defective<'a, R>
impl<'a, R> RefUnwindSafe for Defective<'a, R>where
&'a R: RefUnwindSafe,
impl<'a, R> Send for Defective<'a, R>
impl<'a, R> Sync for Defective<'a, R>
impl<'a, R> Unpin for Defective<'a, R>
impl<'a, R> UnsafeUnpin for Defective<'a, R>where
&'a R: UnsafeUnpin,
impl<'a, R> UnwindSafe for Defective<'a, R>where
&'a R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more