pub struct ActionPollLimits { /* private fields */ }Expand description
Unconditional request, delay, and elapsed limits.
Implementations§
Source§impl ActionPollLimits
impl ActionPollLimits
Sourcepub const fn new(
max_observations: u32,
max_delay: MonotonicDuration,
max_cumulative_delay: MonotonicDuration,
max_elapsed: MonotonicDuration,
) -> Result<Self, ActionPollLimitsError>
pub const fn new( max_observations: u32, max_delay: MonotonicDuration, max_cumulative_delay: MonotonicDuration, max_elapsed: MonotonicDuration, ) -> Result<Self, ActionPollLimitsError>
Creates complete hard limits selected before the first request.
Sourcepub const fn max_observations(self) -> u32
pub const fn max_observations(self) -> u32
Returns the maximum accepted provider observations.
Sourcepub const fn max_delay(self) -> MonotonicDuration
pub const fn max_delay(self) -> MonotonicDuration
Returns the maximum delay admitted from any backoff policy.
Sourcepub const fn max_cumulative_delay(self) -> MonotonicDuration
pub const fn max_cumulative_delay(self) -> MonotonicDuration
Returns the cumulative requested-delay budget.
Sourcepub const fn max_elapsed(self) -> MonotonicDuration
pub const fn max_elapsed(self) -> MonotonicDuration
Returns the monotonic elapsed-time budget.
Trait Implementations§
Source§impl Clone for ActionPollLimits
impl Clone for ActionPollLimits
Source§fn clone(&self) -> ActionPollLimits
fn clone(&self) -> ActionPollLimits
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 ActionPollLimits
Source§impl Debug for ActionPollLimits
impl Debug for ActionPollLimits
impl Eq for ActionPollLimits
Source§impl PartialEq for ActionPollLimits
impl PartialEq for ActionPollLimits
impl StructuralPartialEq for ActionPollLimits
Auto Trait Implementations§
impl Freeze for ActionPollLimits
impl RefUnwindSafe for ActionPollLimits
impl Send for ActionPollLimits
impl Sync for ActionPollLimits
impl Unpin for ActionPollLimits
impl UnsafeUnpin for ActionPollLimits
impl UnwindSafe for ActionPollLimits
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