pub struct ListenStep {
pub channel: String,
pub channel_is_ref: bool,
pub event_alias: String,
pub body: Vec<FlowStep>,
pub loc: Loc,
}Expand description
v1.6.0 D4 — dual-mode listen.
channel_is_ref = true ⇒ channel is the name of a declared
ChannelDefinition (canonical v1.6.0 form). false ⇒ legacy
string topic (deprecated; type checker emits a warning).
Fields§
§channel: String§channel_is_ref: bool§event_alias: String§body: Vec<FlowStep>v2.4.0 — the handler body: real flow-steps executed on each event /
scheduled tick. Pre-v2.4.0 the { … } block was skip_braced_block’d
(the listener was inert); now it is parsed so a daemon can run logic
(e.g. run <Flow>(…)) per trigger. Empty for a bodyless listen.
loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for ListenStep
impl RefUnwindSafe for ListenStep
impl Send for ListenStep
impl Sync for ListenStep
impl Unpin for ListenStep
impl UnsafeUnpin for ListenStep
impl UnwindSafe for ListenStep
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