Struct rtlola_parser::ast::SpawnSpec[][src]

pub struct SpawnSpec {
    pub target: Option<Expression>,
    pub pacing: ActivationCondition,
    pub condition: Option<Expression>,
    pub is_if: bool,
    pub id: NodeId,
    pub span: Span,
}

An Ast node representing the declaration of a spawn condition of a stream template.

Fields

target: Option<Expression>

The expression defining the parameter instances. If the stream has more than one parameter, the expression needs to return a tuple, with one element for each parameter

pacing: ActivationCondition

The ActivationCondition describing when a new instance is created.

condition: Option<Expression>

An additional condition for the creation of an instance, i.e., an instance is only created if the condition is true.

is_if: bool

A flag to describe if the condition is an if or an unless condition.

id: NodeId

The id of the node in the Ast

span: Span

The span in the specification declaring the invoke declaration

Trait Implementations

impl Clone for SpawnSpec[src]

impl Debug for SpawnSpec[src]

impl Display for SpawnSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.