pub struct PoolItem {Show 21 fields
pub cfg: Vec<Attribute>,
pub ident: Ident,
pub modes: Vec<Ident>,
pub deps: Vec<Dep>,
pub source: TaskSource,
pub policy: Expr,
pub policy_ty: Option<Type>,
pub executor: Option<Ident>,
pub executor_defaulted: bool,
pub resources: Vec<ResourceDecl>,
pub slot_timeout: Option<Gated<slot_timeout, LitInt>>,
pub ack_timeout: Option<Gated<ack_timeout, LitInt>>,
pub reads: Vec<SignalDecl>,
pub writes: Vec<SignalDecl>,
pub min: Expr,
pub max: Expr,
pub state: Option<(state, Type, StateInit)>,
pub cancel: bool,
pub discover: Option<Gated<discover>>,
pub dataflow: Vec<AdoptedFn>,
pub fragment: Option<String>,
}Expand description
A parsed pool NAME = [Mode, ...], ...; declaration.
Fields§
§cfg: Vec<Attribute>#[cfg(...)] attributes attached to the pool.
ident: IdentThe pool identifier.
modes: Vec<Ident>The allowed member lifecycle modes.
deps: Vec<Dep>The pool’s deps: list.
source: TaskSourceThe task source (spawn: or task:).
policy: ExprThe scaling policy expression.
policy_ty: Option<Type>The optional explicit scaling policy type.
executor: Option<Ident>Spawning executor: either an explicit executor: clause or the graph’s
inherited default.
executor_defaulted: booltrue if the executor was inherited from the default, not written.
resources: Vec<ResourceDecl>The resources: list.
slot_timeout: Option<Gated<slot_timeout, LitInt>>The slot_timeout: value in milliseconds, with any #[cfg(...)] gate.
ack_timeout: Option<Gated<ack_timeout, LitInt>>The ack_timeout: value in milliseconds, with any #[cfg(...)] gate.
reads: Vec<SignalDecl>The reads: signal list.
writes: Vec<SignalDecl>The writes: signal list.
min: ExprThe min: expression for elastic scaling.
max: ExprThe max: expression for elastic scaling.
state: Option<(state, Type, StateInit)>The state: declaration, if any.
cancel: boolWhether pool members are marked cancel.
discover: Option<Gated<discover>>The discover marker, if present, with any #[cfg(...)] gate.
dataflow: Vec<AdoptedFn>Functions adopted via dataflow:.
fragment: Option<String>The fragment name this pool belongs to, if any.