pub enum Fault {
ConnectionLost,
}Expand description
A fault that can be injected into the next operation routed through
the driver. Faults are consumed in FIFO order: each exec call pops
at most one fault off the queue before delegating (or short-circuiting
past) the underlying driver.
Variants§
ConnectionLost
Causes the next exec to return Error::connection_lost without
touching the underlying connection. The wrapping
InstrumentedConnection’s is_valid flips to false, mirroring
what a real connection-lost error would do and prompting the pool
to evict the connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fault
impl RefUnwindSafe for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl UnsafeUnpin for Fault
impl UnwindSafe for Fault
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