Struct rtlola_hir::hir::Trigger
source · pub struct Trigger {
pub message: String,
pub info_streams: Vec<StreamReference>,
/* private fields */
}
Expand description
Represents a trigger of an RTLola specification.
Fields§
§message: String
The message that will be conveyed when the trigger expression evaluates to true.
info_streams: Vec<StreamReference>
A collection of streams which can be used in the message. Their value is printed when the trigger is activated.
Implementations§
source§impl Trigger
impl Trigger
sourcepub fn sr(&self) -> StreamReference
pub fn sr(&self) -> StreamReference
Provides the reference of a stream that represents this trigger.
sourcepub fn expression(&self) -> ExprId
pub fn expression(&self) -> ExprId
Provides access to the trigger condition