pub struct SpawnSpec {
pub expression: Option<Expression>,
pub annotated_pacing: AnnotatedPacingType,
pub condition: Option<Expression>,
pub id: NodeId,
pub span: Span,
}Expand description
An Ast node representing the declaration of a spawn condition and expression of a stream.
Fields§
§expression: 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: AnnotatedPacingTypeThe 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.
id: NodeIdThe id of the node in the Ast
span: SpanThe span in the specification declaring the invoke declaration
Trait Implementations§
Source§impl Ord for SpawnSpec
impl Ord for SpawnSpec
Source§impl PartialOrd for SpawnSpec
impl PartialOrd for SpawnSpec
impl Eq for SpawnSpec
impl StructuralPartialEq for SpawnSpec
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl !Send for SpawnSpec
impl !Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnwindSafe for SpawnSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more