pub enum OnTrigger {
Event {
performative: Performative,
pattern: Option<String>,
from: Option<String>,
as_role: Option<String>,
phase: Option<String>,
},
Breach,
Expired,
Timer {
every_ms: i64,
guard: Option<Guard>,
as_role: Option<String>,
},
}Expand description
What fires a handler.
Variants§
Event
on request("quote") from buyer — incoming speech act (optionally
patterned, attributed to a sender role, and in n-role protocols
optionally restricted to ONE executor via as <role>)
Fields
§
performative: PerformativeBreach
on breach — a commitment this role owes was broken
Expired
on expired — the session/commitment deadline passed
Timer
§34: every 60s while <guard> as <role> — time-driven handler;
the HOST injects ticks (runtime stays clock-free and deterministic).
Unattributed timers fire in every role.
Trait Implementations§
impl StructuralPartialEq for OnTrigger
Auto Trait Implementations§
impl Freeze for OnTrigger
impl RefUnwindSafe for OnTrigger
impl Send for OnTrigger
impl Sync for OnTrigger
impl Unpin for OnTrigger
impl UnsafeUnpin for OnTrigger
impl UnwindSafe for OnTrigger
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