pub struct PoolCustomizer<M: ManageConnection> { /* private fields */ }Available on crate feature
pool only.Expand description
PoolCustomizer
Implementations§
Source§impl<M: ManageConnection> PoolCustomizer<M>
impl<M: ManageConnection> PoolCustomizer<M>
Sourcepub fn configure_error_handler(&mut self, handler: impl HandleError<M::Error>)
pub fn configure_error_handler(&mut self, handler: impl HandleError<M::Error>)
Configure error handler.
Sourcepub fn configure_event_handler(&mut self, handler: impl HandleEvent + 'static)
pub fn configure_event_handler(&mut self, handler: impl HandleEvent + 'static)
Configure event handler.
Sourcepub fn configure_connection_customizer(
&mut self,
handler: impl CustomizeConnection<M::Connection, M::Error>,
)
pub fn configure_connection_customizer( &mut self, handler: impl CustomizeConnection<M::Connection, M::Error>, )
Configure connection customizer.
Auto Trait Implementations§
impl<M> Freeze for PoolCustomizer<M>
impl<M> !RefUnwindSafe for PoolCustomizer<M>
impl<M> Send for PoolCustomizer<M>
impl<M> Sync for PoolCustomizer<M>
impl<M> Unpin for PoolCustomizer<M>
impl<M> !UnwindSafe for PoolCustomizer<M>
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