Struct rtlola_parser::ast::SpawnSpec
source · [−]pub struct SpawnSpec {
pub target: Option<Expression>,
pub annotated_pacing: Option<Expression>,
pub condition: Option<Expression>,
pub is_if: bool,
pub id: NodeId,
pub span: Span,
}Expand description
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
annotated_pacing: Option<Expression>The pacing type 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: boolA flag to describe if the condition is an if or an unless condition.
id: NodeIdThe id of the node in the Ast
span: SpanThe span in the specification declaring the invoke declaration
Trait Implementations
impl Eq for SpawnSpec
impl StructuralEq for SpawnSpec
impl StructuralPartialEq for SpawnSpec
Auto Trait Implementations
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnwindSafe for SpawnSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more