pub struct Stage {
pub name: String,
pub action: Actor,
pub result_check: Check,
pub fail_action: FailAction,
pub ff_only: bool,
}Expand description
One stage: an untrusted action, an independent result_check that
judges it, and what to do when the reading is Fail.
The split is the point. The action is whatever produces the work and is never trusted to grade itself; the check is a separate actor (or the action’s own exit, or a worker’s report) that decides. Every judgement a stage can carry is a configuration of this one shape rather than a policy of its own.
Fields§
§name: String§action: Actor§result_check: Check§fail_action: FailAction§ff_only: boolThe merge builtin’s fast-forward-only mode, written inside the action
as { builtin: merge, ff_only: true }. It is refused on every other
action, so a true here always describes a merge stage.
It rides on the stage rather than inside Actor, keeping
Builtin::Merge’s unit wire shape: an absent key is simply the mode
switched off, in the flow file and in the snapshot alike.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
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 Eq for Stage
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.