pub enum TimeoutSetting {
Inherit,
Disabled,
Set(Duration),
}Expand description
Tri-state timeout override. Inherit uses the pool default; Disabled explicitly requests
no timeout; Set replaces the pool default for this operation.
Variants§
Inherit
Use the pool default.
Disabled
Explicitly request no timeout. Use only when the caller owns a separate cancellation path.
Set(Duration)
Replace the pool default with this timeout.
Trait Implementations§
Source§impl Clone for TimeoutSetting
impl Clone for TimeoutSetting
impl Copy for TimeoutSetting
Source§impl Debug for TimeoutSetting
impl Debug for TimeoutSetting
Source§impl Default for TimeoutSetting
impl Default for TimeoutSetting
impl Eq for TimeoutSetting
Source§impl PartialEq for TimeoutSetting
impl PartialEq for TimeoutSetting
impl StructuralPartialEq for TimeoutSetting
Auto Trait Implementations§
impl Forget for TimeoutSetting
impl Freeze for TimeoutSetting
impl Move for TimeoutSetting
impl RefUnwindSafe for TimeoutSetting
impl Send for TimeoutSetting
impl Sync for TimeoutSetting
impl Unpin for TimeoutSetting
impl UnsafeUnpin for TimeoutSetting
impl UnwindSafe for TimeoutSetting
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