pub enum PoolEvent {
ConnectionCreated {
connection_id: ConnectionId,
},
ConnectionAcquired {
connection_id: ConnectionId,
},
ConnectionReleased {
connection_id: ConnectionId,
},
ConnectionRemoved {
connection_id: ConnectionId,
},
PoolExpanded {
from_size: usize,
to_size: usize,
},
PoolShrunk {
from_size: usize,
to_size: usize,
},
PoolError {
error: String,
},
}Expand description
[EVENT] Tokio event types
Variants§
ConnectionCreated
Fields
§
connection_id: ConnectionIdConnectionAcquired
Fields
§
connection_id: ConnectionIdConnectionReleased
Fields
§
connection_id: ConnectionIdConnectionRemoved
Fields
§
connection_id: ConnectionIdPoolExpanded
PoolShrunk
PoolError
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