Enum deadpool::managed::TimeoutType
source · [−]pub enum TimeoutType {
Wait,
Create,
Recycle,
}
Expand description
When Pool::get
returns a timeout error this enum can be used
to figure out which step caused the timeout.
Variants
Wait
The timeout happened while waiting for a slot to become available
Create
The timeout happened while creating the object
Recycle
The timeout happened while recycling an object
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimeoutType
impl Send for TimeoutType
impl Sync for TimeoutType
impl Unpin for TimeoutType
impl UnwindSafe for TimeoutType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more