pub struct RetryStateLimit(/* private fields */);Expand description
The maximum number of unresolved retry keys retained for one step.
Implementations§
Source§impl RetryStateLimit
impl RetryStateLimit
Sourcepub fn new(value: u32) -> Result<Self, FaultPolicyError>
pub fn new(value: u32) -> Result<Self, FaultPolicyError>
Validates and constructs the bounded unresolved-key capacity.
§Errors
Returns FaultPolicyError::RetryStateLimitOutOfRange outside
1..=256. A definition must choose the bound explicitly.
Trait Implementations§
Source§impl Clone for RetryStateLimit
impl Clone for RetryStateLimit
Source§fn clone(&self) -> RetryStateLimit
fn clone(&self) -> RetryStateLimit
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 moreimpl Copy for RetryStateLimit
Source§impl Debug for RetryStateLimit
impl Debug for RetryStateLimit
impl Eq for RetryStateLimit
Source§impl Hash for RetryStateLimit
impl Hash for RetryStateLimit
Source§impl Ord for RetryStateLimit
impl Ord for RetryStateLimit
Source§fn cmp(&self, other: &RetryStateLimit) -> Ordering
fn cmp(&self, other: &RetryStateLimit) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RetryStateLimit
impl PartialEq for RetryStateLimit
Source§impl PartialOrd for RetryStateLimit
impl PartialOrd for RetryStateLimit
impl StructuralPartialEq for RetryStateLimit
Auto Trait Implementations§
impl Freeze for RetryStateLimit
impl RefUnwindSafe for RetryStateLimit
impl Send for RetryStateLimit
impl Sync for RetryStateLimit
impl Unpin for RetryStateLimit
impl UnsafeUnpin for RetryStateLimit
impl UnwindSafe for RetryStateLimit
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