Struct r2d2::NopConnectionCustomizer
source · [−]pub struct NopConnectionCustomizer;
Expand description
A CustomizeConnection
which does nothing.
Trait Implementations
sourceimpl Clone for NopConnectionCustomizer
impl Clone for NopConnectionCustomizer
sourcefn clone(&self) -> NopConnectionCustomizer
fn clone(&self) -> NopConnectionCustomizer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<C, E> CustomizeConnection<C, E> for NopConnectionCustomizer
impl<C, E> CustomizeConnection<C, E> for NopConnectionCustomizer
sourcefn on_acquire(&self, conn: &mut C) -> Result<(), E>
fn on_acquire(&self, conn: &mut C) -> Result<(), E>
Called with connections immediately after they are returned from
ManageConnection::connect
. Read moresourcefn on_release(&self, conn: C)
fn on_release(&self, conn: C)
Called with connections when they are removed from the pool. Read more
sourceimpl Debug for NopConnectionCustomizer
impl Debug for NopConnectionCustomizer
impl Copy for NopConnectionCustomizer
Auto Trait Implementations
impl RefUnwindSafe for NopConnectionCustomizer
impl Send for NopConnectionCustomizer
impl Sync for NopConnectionCustomizer
impl Unpin for NopConnectionCustomizer
impl UnwindSafe for NopConnectionCustomizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more