pub enum PollDecision {
Delay(Duration),
Cancel,
Timeout,
}Expand description
Caller-owned decision after a running action observation.
Variants§
Delay(Duration)
Wait for this nonzero duration before the caller sends another request.
Cancel
Stop because caller cancellation was requested.
Timeout
Stop because the caller’s deadline or attempt budget expired.
Trait Implementations§
Source§impl Clone for PollDecision
impl Clone for PollDecision
Source§fn clone(&self) -> PollDecision
fn clone(&self) -> PollDecision
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 PollDecision
Source§impl Debug for PollDecision
impl Debug for PollDecision
impl Eq for PollDecision
Source§impl PartialEq for PollDecision
impl PartialEq for PollDecision
impl StructuralPartialEq for PollDecision
Auto Trait Implementations§
impl Freeze for PollDecision
impl RefUnwindSafe for PollDecision
impl Send for PollDecision
impl Sync for PollDecision
impl Unpin for PollDecision
impl UnsafeUnpin for PollDecision
impl UnwindSafe for PollDecision
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