pub enum AcquireOutcome {
Ok,
Timeout,
Closed,
Worker,
Cancelled,
Other,
}Expand description
连接获取的稳定完成分类。
Variants§
Ok
连接获取成功。
Timeout
获取连接超过期限,不能据此推断是池饱和还是建连失败。
Closed
连接池或事务连接槽已关闭。
Worker
数据库连接工作任务退出导致获取失败。
Cancelled
等待方取消,未取得连接。
Other
其它连接获取错误。
Trait Implementations§
Source§impl Clone for AcquireOutcome
impl Clone for AcquireOutcome
impl Copy for AcquireOutcome
Source§impl Debug for AcquireOutcome
impl Debug for AcquireOutcome
impl Eq for AcquireOutcome
Source§impl PartialEq for AcquireOutcome
impl PartialEq for AcquireOutcome
impl StructuralPartialEq for AcquireOutcome
Auto Trait Implementations§
impl Forget for AcquireOutcome
impl Freeze for AcquireOutcome
impl Move for AcquireOutcome
impl RefUnwindSafe for AcquireOutcome
impl Send for AcquireOutcome
impl Sync for AcquireOutcome
impl Unpin for AcquireOutcome
impl UnsafeUnpin for AcquireOutcome
impl UnwindSafe for AcquireOutcome
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