#[non_exhaustive]pub enum AcquireOutcome {
Ok,
Timeout,
PoolClosed,
Error,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
Timeout
PoolClosed
Error
Any other failure: TLS handshake, DNS, auth, or connection setup. Use the error message in adjacent log context to disambiguate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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