Struct rtlola_interpreter::rtlola_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<Spawn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Spawn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Spawn> for Spawn
impl PartialEq<Spawn> for Spawn
source§impl Serialize for Spawn
impl Serialize for Spawn
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more