Skip to main content

LayeredPipelineSchedule

Struct LayeredPipelineSchedule 

Source
pub struct LayeredPipelineSchedule<'a> { /* private fields */ }
Expand description

Backend-neutral lifecycle for the pipeline ingress phase of a layered graph.

Architectures declare semantic group kinds and request optionality while concrete backends report only whether optional encoder roots have work. The runtime derives all downstream activity, admits dependency-ready compatible batches, and owns completion transitions. Pipeline backends therefore share the same graph lifecycle instead of reconstructing it around native streams and routes.

Implementations§

Source§

impl<'a> LayeredPipelineSchedule<'a>

Source

pub fn try_new<E>( graph: &'a ExecutionGraph, group_contracts: impl IntoIterator<Item = (ArchitectureGroupKind, bool)>, request_group_active: impl FnMut(usize) -> Result<bool, E>, ) -> Result<Self, E>

Creates the pipeline ingress lifecycle from canonical architecture contracts.

Each contract pairs a group’s semantic kind with its declared request optionality. request_group_active is called only for optional encoder roots. Mandatory encoders, decoder ingress, and finalization always run; structural merge activity is derived from dependency activity; and prediction is a later phase.

Source

pub fn is_active(&self, group: usize) -> Option<bool>

Returns whether a group participates in this pipeline ingress pass.

Source

pub fn activity(&self) -> &[bool]

Returns all group activity in canonical architecture order.

Source

pub fn ready_groups(&self) -> impl Iterator<Item = usize> + '_

Returns dependency-ready groups in stable architecture order.

Source

pub fn compatible_batch( &self, compatible: impl FnMut(usize, usize) -> bool, ) -> Vec<usize>

Selects a deterministic maximal compatible subset of ready groups.

Source

pub fn dependencies(&self, group: usize) -> Option<&[usize]>

Returns dependency slots in architecture declaration order.

Source

pub fn started( &mut self, group: usize, ) -> Result<Vec<usize>, LayeredPipelineScheduleError>

Commits architecture setup for a dependency-ready group.

The returned producer slots no longer need to retain their outputs for another consumer after this group has captured its dependencies.

Source

pub fn ordered( &mut self, group: usize, ) -> Result<(), LayeredPipelineScheduleError>

Commits one successfully submitted group and unlocks its dependents.

Source

pub fn is_complete(&self) -> bool

Returns whether every architecture group has completed this phase.

Trait Implementations§

Source§

impl<'a> Debug for LayeredPipelineSchedule<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.