pub struct PollContext { /* private fields */ }Expand description
Context passed to caller-owned delay and stop policy.
Implementations§
Source§impl PollContext
impl PollContext
Sourcepub const fn observation(self) -> u32
pub const fn observation(self) -> u32
Returns the one-based running observation count.
Sourcepub const fn rate_limit(self) -> Option<RateLimit>
pub const fn rate_limit(self) -> Option<RateLimit>
Returns rate-limit metadata associated with the observation.
Trait Implementations§
Source§impl Clone for PollContext
impl Clone for PollContext
Source§fn clone(&self) -> PollContext
fn clone(&self) -> PollContext
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 PollContext
Source§impl Debug for PollContext
impl Debug for PollContext
impl Eq for PollContext
Source§impl PartialEq for PollContext
impl PartialEq for PollContext
impl StructuralPartialEq for PollContext
Auto Trait Implementations§
impl Freeze for PollContext
impl RefUnwindSafe for PollContext
impl Send for PollContext
impl Sync for PollContext
impl Unpin for PollContext
impl UnsafeUnpin for PollContext
impl UnwindSafe for PollContext
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