[−][src]Enum reool::CheckoutMode
Variants
Expect a connection to be returned immediately.
If there is none available return an error immediately.
In that case a CheckoutErrorKind::NoConnection
will be returned
This mode will always try to get a connection
Wait until there is a connection
Use the default configured for the pool
Until(Instant)
Checkout before the given Instant
is elapsed. If the given timeout is
elapsed, no attempt to checkout a connection will be made.
In that case a CheckoutErrorKind::CheckoutTimeout
will be returned.
Methods
impl CheckoutMode
[src]
pub fn is_deadline_elapsed(self) -> bool
[src]
Trait Implementations
impl From<Immediately> for CheckoutMode
[src]
fn from(_: Immediately) -> Self
[src]
impl From<Wait> for CheckoutMode
[src]
impl From<PoolDefault> for CheckoutMode
[src]
fn from(_: PoolDefault) -> Self
[src]
impl From<Duration> for CheckoutMode
[src]
impl From<Instant> for CheckoutMode
[src]
impl Clone for CheckoutMode
[src]
fn clone(&self) -> CheckoutMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CheckoutMode
[src]
impl Default for CheckoutMode
[src]
impl Eq for CheckoutMode
[src]
impl PartialEq<CheckoutMode> for CheckoutMode
[src]
fn eq(&self, other: &CheckoutMode) -> bool
[src]
fn ne(&self, other: &CheckoutMode) -> bool
[src]
impl Debug for CheckoutMode
[src]
impl StructuralPartialEq for CheckoutMode
[src]
impl StructuralEq for CheckoutMode
[src]
Auto Trait Implementations
impl Send for CheckoutMode
impl Sync for CheckoutMode
impl Unpin for CheckoutMode
impl UnwindSafe for CheckoutMode
impl RefUnwindSafe for CheckoutMode
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,