Enum stripe::RequestStrategy
source · pub enum RequestStrategy {
Once,
Idempotent(String),
Retry(u32),
ExponentialBackoff(u32),
}
Variants§
Once
Idempotent(String)
Run it once with a given idempotency key.
Retry(u32)
This strategy will retry the request up to the specified number of times using the same, random, idempotency key, up to n times.
ExponentialBackoff(u32)
This strategy will retry the request up to the specified number of times using the same, random, idempotency key with exponential backoff, up to n times.
Implementations§
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 moreAuto Trait Implementations§
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