Struct diesel::r2d2::NopEventHandler
source · pub struct NopEventHandler;
Expand description
A HandleEvent
implementation which does nothing.
Trait Implementations§
source§impl Clone for NopEventHandler
impl Clone for NopEventHandler
source§fn clone(&self) -> NopEventHandler
fn clone(&self) -> NopEventHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NopEventHandler
impl Debug for NopEventHandler
source§impl HandleEvent for NopEventHandler
impl HandleEvent for NopEventHandler
source§fn handle_acquire(&self, event: AcquireEvent)
fn handle_acquire(&self, event: AcquireEvent)
Called when a new connection is acquired. Read more
source§fn handle_release(&self, event: ReleaseEvent)
fn handle_release(&self, event: ReleaseEvent)
Called when a connection is released. Read more
source§fn handle_checkout(&self, event: CheckoutEvent)
fn handle_checkout(&self, event: CheckoutEvent)
Called when a connection is checked out from the pool. Read more
source§fn handle_timeout(&self, event: TimeoutEvent)
fn handle_timeout(&self, event: TimeoutEvent)
Called when a checkout attempt times out. Read more
source§fn handle_checkin(&self, event: CheckinEvent)
fn handle_checkin(&self, event: CheckinEvent)
Called when a connection is checked back into the pool.
impl Copy for NopEventHandler
Auto Trait Implementations§
impl RefUnwindSafe for NopEventHandler
impl Send for NopEventHandler
impl Sync for NopEventHandler
impl Unpin for NopEventHandler
impl UnwindSafe for NopEventHandler
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more