pub struct Outcome {
pub v: u32,
pub result: String,
pub payload: Option<Value>,
pub error: Option<OutcomeError>,
pub attempts: u32,
pub from_cache: bool,
pub waits_ms: Vec<u64>,
pub throttled: bool,
pub throttle_wait_ms: u64,
pub breaker: BreakerState,
pub trace_id: String,
}Expand description
The result of execute: what happened after the full layer chain ran.
Fields§
§v: u32§result: String“ok” | “error”
payload: Option<Value>§error: Option<OutcomeError>§attempts: u32Number of effect attempts actually made (0 on cache hit / breaker open).
from_cache: bool§waits_ms: Vec<u64>Retry backoff waits, in order. Excludes rate-limit queueing.
throttled: boolTrue if the call waited on the rate limiter.
throttle_wait_ms: u64§breaker: BreakerState§trace_id: StringStable per-core trace id (“t-000001”); joins outcomes to spans/journal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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