#[non_exhaustive]pub enum Outcome {
Success {
rtt: Duration,
},
Failure,
}Available on crate feature
adaptive only.Expand description
The observed result of one completed request, fed back to the strategy.
#[non_exhaustive]: more signals may be added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success
The request succeeded, with this round-trip time. Latency-based strategies use the timing; count-based ones treat it as a plain success.
Failure
The request failed (an error, a timeout, or a downstream rejection) — a signal to back off.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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