pub enum PoolEvent {
ConnectionCreated,
ConnectionClosed,
ConnectionAcquired,
ConnectionReleased,
AcquireTimeout,
}Expand description
连接池事件
Variants§
ConnectionCreated
创建新连接
ConnectionClosed
连接被关闭
ConnectionAcquired
连接被获取
ConnectionReleased
连接被归还
AcquireTimeout
获取连接超时
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolEvent
impl RefUnwindSafe for PoolEvent
impl Send for PoolEvent
impl Sync for PoolEvent
impl Unpin for PoolEvent
impl UnsafeUnpin for PoolEvent
impl UnwindSafe for PoolEvent
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