pub struct WaitParams { /* private fields */ }Expand description
Parameters for configuring the wait middleware Controls the waiting behavior after request processing
Implementations§
Source§impl WaitParams
impl WaitParams
Sourcepub fn new(ms: u64) -> Self
pub fn new(ms: u64) -> Self
Creates a new WaitParams with the specified wait duration in milliseconds.
Sourcepub fn only_on_error(self) -> Self
pub fn only_on_error(self) -> Self
Only wait when the response status is >= 400.
Trait Implementations§
Source§impl Clone for WaitParams
impl Clone for WaitParams
Source§fn clone(&self) -> WaitParams
fn clone(&self) -> WaitParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WaitParams
impl Debug for WaitParams
Source§impl Default for WaitParams
impl Default for WaitParams
Source§fn default() -> WaitParams
fn default() -> WaitParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WaitParams
impl RefUnwindSafe for WaitParams
impl Send for WaitParams
impl Sync for WaitParams
impl Unpin for WaitParams
impl UnsafeUnpin for WaitParams
impl UnwindSafe for WaitParams
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