pub struct ActionPoller { /* private fields */ }Expand description
Explicit state for one caller-driven action polling operation.
Implementations§
Source§impl ActionPoller
impl ActionPoller
Sourcepub const fn observations(self) -> u32
pub const fn observations(self) -> u32
Returns the number of accepted observations.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Reports whether polling reached a terminal step.
Sourcepub fn observe<E, P>(
&mut self,
update: ActionUpdate<E>,
progress: u8,
rate_limit: Option<RateLimit>,
policy: &mut P,
) -> Result<ActionPollStep<E>, ActionPollError<P::Error>>where
P: PollPolicy,
pub fn observe<E, P>(
&mut self,
update: ActionUpdate<E>,
progress: u8,
rate_limit: Option<RateLimit>,
policy: &mut P,
) -> Result<ActionPollStep<E>, ActionPollError<P::Error>>where
P: PollPolicy,
Records one decoded action response and asks caller policy only when it remains running.
Trait Implementations§
Source§impl Clone for ActionPoller
impl Clone for ActionPoller
Source§fn clone(&self) -> ActionPoller
fn clone(&self) -> ActionPoller
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 ActionPoller
Source§impl Debug for ActionPoller
impl Debug for ActionPoller
Source§impl Default for ActionPoller
impl Default for ActionPoller
impl Eq for ActionPoller
Source§impl PartialEq for ActionPoller
impl PartialEq for ActionPoller
impl StructuralPartialEq for ActionPoller
Auto Trait Implementations§
impl Freeze for ActionPoller
impl RefUnwindSafe for ActionPoller
impl Send for ActionPoller
impl Sync for ActionPoller
impl Unpin for ActionPoller
impl UnsafeUnpin for ActionPoller
impl UnwindSafe for ActionPoller
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