pub enum RequestStrategy {
Once,
Retry(RetryCount),
}
Expand description
The strategy to use for executing a request. Defaults to RetryStrategy::Once
.
Variants§
Once
Fire the request once and return the response.
Retry(RetryCount)
Fire the request once and return the response. If the response is an error, retry the request
Implementations§
Source§impl RequestStrategy
impl RequestStrategy
pub const fn is_retry(&self) -> bool
pub const fn get_retry_count(&self) -> Option<&RetryCount>
Trait Implementations§
Source§impl Clone for RequestStrategy
impl Clone for RequestStrategy
Source§fn clone(&self) -> RequestStrategy
fn clone(&self) -> RequestStrategy
Returns a copy 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 RequestStrategy
impl Debug for RequestStrategy
Source§impl Default for RequestStrategy
impl Default for RequestStrategy
Source§fn default() -> RequestStrategy
fn default() -> RequestStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestStrategy
impl RefUnwindSafe for RequestStrategy
impl Send for RequestStrategy
impl Sync for RequestStrategy
impl Unpin for RequestStrategy
impl UnwindSafe for RequestStrategy
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