pub struct TransitionInput {
pub state: LoopState,
pub trigger: LoopTrigger,
pub guards: TransitionGuardSet,
}Expand description
Holds transition input application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§state: LoopStateState used by this record or request.
trigger: LoopTriggerTrigger used by this record or request.
guards: TransitionGuardSetGuards used by this record or request.
Implementations§
Source§impl TransitionInput
impl TransitionInput
Sourcepub fn new(state: LoopState, trigger: LoopTrigger) -> Self
pub fn new(state: LoopState, trigger: LoopTrigger) -> Self
Creates a new application::loop_state value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn with_guard(self, guard: TransitionGuard) -> Self
pub fn with_guard(self, guard: TransitionGuard) -> Self
Returns this value with its guard setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn with_guards(self, guards: TransitionGuardSet) -> Self
pub fn with_guards(self, guards: TransitionGuardSet) -> Self
Returns this value with its guards setting replaced. The method follows builder-style data construction and does not execute external work.
Trait Implementations§
Source§impl Clone for TransitionInput
impl Clone for TransitionInput
Source§fn clone(&self) -> TransitionInput
fn clone(&self) -> TransitionInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransitionInput
impl Debug for TransitionInput
Source§impl<'de> Deserialize<'de> for TransitionInput
impl<'de> Deserialize<'de> for TransitionInput
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 TransitionInput
Source§impl PartialEq for TransitionInput
impl PartialEq for TransitionInput
Source§fn eq(&self, other: &TransitionInput) -> bool
fn eq(&self, other: &TransitionInput) -> bool
self and other values to be equal, and is used by ==.