pub enum RetryStrategy {
None,
UntilComplete,
UntilAcknowledged,
}
Variants§
Implementations§
source§impl RetryStrategy
impl RetryStrategy
pub fn should_retry(&self, error: &TwiError) -> bool
Trait Implementations§
source§impl Clone for RetryStrategy
impl Clone for RetryStrategy
source§fn clone(&self) -> RetryStrategy
fn clone(&self) -> RetryStrategy
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 PartialEq for RetryStrategy
impl PartialEq for RetryStrategy
source§fn eq(&self, other: &RetryStrategy) -> bool
fn eq(&self, other: &RetryStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RetryStrategy
impl Eq for RetryStrategy
impl StructuralPartialEq for RetryStrategy
Auto Trait Implementations§
impl Freeze for RetryStrategy
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnwindSafe for RetryStrategy
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