pub struct Phase { /* private fields */ }Expand description
Immutable nonempty execution phase and reporter section.
Implementations§
Source§impl Phase
impl Phase
Sourcepub fn builder(id: impl Into<PhaseId>, label: impl Into<String>) -> PhaseBuilder
pub fn builder(id: impl Into<PhaseId>, label: impl Into<String>) -> PhaseBuilder
Begins declaring a phase. Tasks must be added before PhaseBuilder::build.
Sourcepub const fn max_concurrent_workloads(&self) -> usize
pub const fn max_concurrent_workloads(&self) -> usize
Returns the phase-local concurrent workload ceiling.
Sourcepub const fn queue_capacity(&self) -> usize
pub const fn queue_capacity(&self) -> usize
Returns the prepared-but-not-running workload ceiling.
Sourcepub fn dependencies(&self) -> &[PhaseId]
pub fn dependencies(&self) -> &[PhaseId]
Returns declared predecessor phases in declaration order.
Sourcepub const fn failure_policy(&self) -> PhaseFailurePolicy
pub const fn failure_policy(&self) -> PhaseFailurePolicy
Returns the behavior selected for the first workload failure.
Sourcepub const fn requires_confirmation(&self) -> bool
pub const fn requires_confirmation(&self) -> bool
Reports whether successful completion requires confirmation before the next selected phase may start.
Sourcepub fn unique_task_matching(
&self,
selector: &TaskSelector,
) -> Result<&Task, ReportingError>
pub fn unique_task_matching( &self, selector: &TaskSelector, ) -> Result<&Task, ReportingError>
Returns the sole task matching an exact partial selector.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Phase
impl !Sync for Phase
impl !UnwindSafe for Phase
impl Freeze for Phase
impl Send for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
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