Struct diesel::r2d2::NopConnectionCustomizer
source · [−]pub struct NopConnectionCustomizer;
Expand description
A CustomizeConnection
which does nothing.
Trait Implementations
sourceimpl Clone for NopConnectionCustomizer
impl Clone for NopConnectionCustomizer
sourcepub fn clone(&self) -> NopConnectionCustomizer
pub 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 more
sourceimpl<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 more
sourcefn 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more