Struct rtlola_frontend::mir::Spawn
source · pub struct Spawn {
pub expression: Option<Expression>,
pub pacing: PacingType,
pub condition: Option<Expression>,
}
Expand description
Information on the spawn behavior of a stream
Fields§
§expression: Option<Expression>
The expression needs to be evaluated whenever the stream with this Spawn template is supposed to be spawned. The result of the evaluation constitutes the respective parameters.
pacing: PacingType
The timing of when a new instance could be created assuming the spawn condition evaluates to true.
condition: Option<Expression>
The spawn condition. If the condition evaluates to false, the stream will not be spawned.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Spawn
impl<'de> Deserialize<'de> for Spawn
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more