pub enum TimeoutPattern {
NoResponse,
PartialResponse,
DelayedResponse,
Intermittent {
success_rate: f64,
},
}Expand description
Pattern for timeout behavior.
Variants§
NoResponse
No response at all.
PartialResponse
Partial response then timeout.
DelayedResponse
Response after timeout period.
Intermittent
Intermittent (sometimes works, sometimes times out).
Trait Implementations§
Source§impl Clone for TimeoutPattern
impl Clone for TimeoutPattern
Source§fn clone(&self) -> TimeoutPattern
fn clone(&self) -> TimeoutPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeoutPattern
impl Debug for TimeoutPattern
Source§impl Default for TimeoutPattern
impl Default for TimeoutPattern
Source§fn default() -> TimeoutPattern
fn default() -> TimeoutPattern
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeoutPattern
impl<'de> Deserialize<'de> for TimeoutPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimeoutPattern
impl RefUnwindSafe for TimeoutPattern
impl Send for TimeoutPattern
impl Sync for TimeoutPattern
impl Unpin for TimeoutPattern
impl UnsafeUnpin for TimeoutPattern
impl UnwindSafe for TimeoutPattern
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