pub struct OpGuard { /* private fields */ }Expand description
Poisons its connection unless complete is called.
Created by Pooled::begin_op. See that type’s docs for why this exists.
Implementations§
Source§impl OpGuard
impl OpGuard
Sourcepub fn complete_op(self)
pub fn complete_op(self)
Disarms the guard: the operation finished, the connection is intact.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpGuard
impl !Send for OpGuard
impl !Sync for OpGuard
impl !UnwindSafe for OpGuard
impl Freeze for OpGuard
impl Unpin for OpGuard
impl UnsafeUnpin for OpGuard
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