Enum paypal_rust::client::request::RequestStrategy
source · [−]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
sourceimpl RequestStrategy
impl RequestStrategy
pub fn is_retry(&self) -> bool
pub fn get_retry_count(&self) -> Option<&RetryCount>
Trait Implementations
sourceimpl Clone for RequestStrategy
impl Clone for RequestStrategy
sourcefn clone(&self) -> RequestStrategy
fn clone(&self) -> RequestStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RequestStrategy
impl Debug for RequestStrategy
Auto Trait Implementations
impl RefUnwindSafe for RequestStrategy
impl Send for RequestStrategy
impl Sync for RequestStrategy
impl Unpin for RequestStrategy
impl UnwindSafe for RequestStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more