pub struct StatusDefinition {
pub allowed_transitions: Vec<InvocationStatus>,
pub is_final: bool,
pub available_for_run: bool,
pub requires_ownership: bool,
pub acquires_ownership: bool,
pub releases_ownership: bool,
pub overrides_ownership: bool,
}Expand description
Declarative definition of status behavior and ownership rules.
Mirrors pynenc’s StatusDefinition dataclass exactly.
Fields§
§allowed_transitions: Vec<InvocationStatus>Valid next statuses from this status.
is_final: boolTerminates invocation lifecycle.
available_for_run: boolCan be picked up by runners via broker.
requires_ownership: boolOnly the owning runner can modify when in this status.
acquires_ownership: boolClaims ownership on entry (sets runner_id).
releases_ownership: boolReleases ownership on entry (clears runner_id).
overrides_ownership: boolBypasses ownership validation (for recovery scenarios).
Trait Implementations§
Source§impl Clone for StatusDefinition
impl Clone for StatusDefinition
Source§fn clone(&self) -> StatusDefinition
fn clone(&self) -> StatusDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StatusDefinition
impl RefUnwindSafe for StatusDefinition
impl Send for StatusDefinition
impl Sync for StatusDefinition
impl Unpin for StatusDefinition
impl UnsafeUnpin for StatusDefinition
impl UnwindSafe for StatusDefinition
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