Skip to main content

PoolItem

Struct PoolItem 

Source
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: Ident

The pool identifier.

§modes: Vec<Ident>

The allowed member lifecycle modes.

§deps: Vec<Dep>

The pool’s deps: list.

§source: TaskSource

The task source (spawn: or task:).

§policy: Expr

The 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: bool

true 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: Expr

The min: expression for elastic scaling.

§max: Expr

The max: expression for elastic scaling.

§state: Option<(state, Type, StateInit)>

The state: declaration, if any.

§cancel: bool

Whether 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.

Trait Implementations§

Source§

impl Clone for PoolItem

Source§

fn clone(&self) -> PoolItem

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.