pub struct ResetBuilder { /* private fields */ }Expand description
Builder for customizing reset behavior
Implementations§
Source§impl ResetBuilder
impl ResetBuilder
Sourcepub fn deallocate_all(self) -> Self
pub fn deallocate_all(self) -> Self
Add DEALLOCATE ALL (clear prepared statements)
Sourcepub fn close_cursors(self) -> Self
pub fn close_cursors(self) -> Self
Add CLOSE ALL (close cursors)
Sourcepub fn unlisten_all(self) -> Self
pub fn unlisten_all(self) -> Self
Add UNLISTEN * (stop listening for notifications)
Sourcepub fn release_advisory_locks(self) -> Self
pub fn release_advisory_locks(self) -> Self
Add advisory lock release
Sourcepub fn discard_plans(self) -> Self
pub fn discard_plans(self) -> Self
Add DISCARD PLANS (clear cached query plans)
Sourcepub fn discard_temp(self) -> Self
pub fn discard_temp(self) -> Self
Add DISCARD TEMP (drop temporary tables)
Sourcepub fn build(self) -> ConnectionResetExecutor
pub fn build(self) -> ConnectionResetExecutor
Build the reset executor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResetBuilder
impl RefUnwindSafe for ResetBuilder
impl Send for ResetBuilder
impl Sync for ResetBuilder
impl Unpin for ResetBuilder
impl UnsafeUnpin for ResetBuilder
impl UnwindSafe for ResetBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more