pub enum In {
One {
place: PlaceRef,
guard: Option<GuardFn>,
},
Exactly {
place: PlaceRef,
count: usize,
guard: Option<GuardFn>,
},
All {
place: PlaceRef,
guard: Option<GuardFn>,
},
AtLeast {
place: PlaceRef,
minimum: usize,
guard: Option<GuardFn>,
},
}Expand description
Input specification with cardinality and optional guard predicate.
CPN-compliant: cardinality determines how many tokens to consume, guard filters which tokens are eligible.
Inputs are always AND-joined (all must be satisfied to enable transition).
Variants§
One
Consume exactly 1 token (standard CPN semantics).
Exactly
Consume exactly N tokens (batching).
All
Consume all available tokens (must be 1+).
AtLeast
Wait for N+ tokens, consume all when enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for In
impl !RefUnwindSafe for In
impl Send for In
impl Sync for In
impl Unpin for In
impl UnsafeUnpin for In
impl !UnwindSafe for In
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