pub enum PollOutcome<T> {
Data(T),
Empty,
Degraded(ExchangeError),
Fatal(ExchangeError),
}Expand description
Result of a guarded poll operation.
Variants§
Data(T)
Got data — backoff reset, consecutive empties reset.
Empty
Got Ok([]) or transient error — backoff applied internally.
Degraded(ExchangeError)
Transient but health-affecting error (e.g. 502/503). Caller should set health to Halted; guard still applies backoff internally.
Fatal(ExchangeError)
Fatal (non-transient) error — caller should degrade health.
Auto Trait Implementations§
impl<T> Freeze for PollOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for PollOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for PollOutcome<T>where
T: Send,
impl<T> Sync for PollOutcome<T>where
T: Sync,
impl<T> Unpin for PollOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for PollOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PollOutcome<T>where
T: UnwindSafe,
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