pub enum Action {
Adapter {
observation: AdapterObservation,
},
Held {
reason: Reason,
},
Released,
Denied {
reason: Reason,
},
Issued,
Refused {
reason: Reason,
},
Landed {
outcome: OutcomeSummary,
},
StreamTruncated {
delivered: usize,
tail: Vec<String>,
errors: Vec<Reason>,
},
Replaced {
recorded: OutcomeSummary,
consumed: OutcomeSummary,
},
Cancelled {
reason: Reason,
},
Ended {
ending: Reason,
},
Host {
kind: String,
payload: Value,
},
}Expand description
The fact. Every variant carries its own before/after data or reason;
a host adds its own through Action::Host.
Variants§
Adapter
A fact emitted by the provider request boundary.
Fields
observation: AdapterObservationCorrelation and typed boundary metadata.
Held
A pending intent was held before dispatch.
Released
A held intent was released to dispatch.
Denied
An intent was denied before any handler served it.
Issued
The driver took an intent: the id it issued.
Refused
The driver refused an intent before any handler: no record.
Fields
Landed
An outcome landed and the record closed.
Fields
outcome: OutcomeSummaryThe outcome, in brief.
StreamTruncated
A stream ended before its terminal record.
Fields
tail: Vec<String>What the last items seen were (StreamEvent::name, or
"Unknown"), bounded, for after-the-fact classification.
Replaced
An answer was replaced after the record closed.
Fields
recorded: OutcomeSummaryWhat the record holds.
consumed: OutcomeSummaryWhat the consumer received.
Cancelled
An in-flight dispatch was cancelled.
Ended
A program ended.
Host
A host policy’s own fact: named by its kind, carried as its serde
payload. Build one through HostAction.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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>,
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more