pub enum InjectionTrigger {
EveryNTurns(usize),
OnTokenThreshold(usize),
}Expand description
Trigger condition for a SystemInjector rule.
Variants§
EveryNTurns(usize)
Fire every N turns (turn % n == 0, excluding turn 0).
OnTokenThreshold(usize)
Fire when the token count meets or exceeds the threshold.
Trait Implementations§
Source§impl Clone for InjectionTrigger
impl Clone for InjectionTrigger
Source§fn clone(&self) -> InjectionTrigger
fn clone(&self) -> InjectionTrigger
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 InjectionTrigger
impl RefUnwindSafe for InjectionTrigger
impl Send for InjectionTrigger
impl Sync for InjectionTrigger
impl Unpin for InjectionTrigger
impl UnsafeUnpin for InjectionTrigger
impl UnwindSafe for InjectionTrigger
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