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, }
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
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
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more