#[non_exhaustive]pub struct PollingState {
pub start: Instant,
pub attempt_count: u32,
}Expand description
The input into a polling policy query.
On an error, the client library queries the polling policy as to whether it should make a new attempt. The client library provides an instance of this type to this policy.
This struct may gain new fields in future versions of the client libraries.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: InstantThe start time for this polling loop.
attempt_count: u32The number of times the operation has been polled.
Implementations§
Trait Implementations§
Source§impl Clone for PollingState
impl Clone for PollingState
Source§fn clone(&self) -> PollingState
fn clone(&self) -> PollingState
Returns a duplicate 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 Debug for PollingState
impl Debug for PollingState
Auto Trait Implementations§
impl Freeze for PollingState
impl RefUnwindSafe for PollingState
impl Send for PollingState
impl Sync for PollingState
impl Unpin for PollingState
impl UnwindSafe for PollingState
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