[][src]Struct tempest::pipeline::PipelineMsgState

pub struct PipelineMsgState { /* fields omitted */ }

This stores the original message id and it's state as moves through a pipeline

Methods

impl PipelineMsgState[src]

pub fn new(matrix: Vec<(&'static str, &'static str, bool)>) -> Self[src]

pub fn get(&self, edge: &(String, String)) -> Option<&Vec<(usize, bool)>>[src]

Returns a list of pending messages for a given edge

pub fn task_visit(&mut self, name: String)[src]

Marks the task name as visited

pub fn edge_start(&mut self, edge: (String, String), size: usize)[src]

Marks the edge as being started for processing

pub fn edge_visit(&mut self, edge: &(String, String))[src]

Marks an edge as visted and marks the task as visited if all task ancestors have also been visted

pub fn task_dead_ends(&mut self, edge: &(String, String), pipeline: &Pipeline)[src]

A task dead-end occurs when the output of an ancestor edge returns no messages to move into descendant tasks. This does the appropriate cleanup to mark all downstream descendants as visited for a given edge.

pub fn edge_visit_index(
    &mut self,
    edge: &(String, String),
    index: usize
) -> Option<bool>
[src]

This is called when we ack a message by its index for an edge

pub fn finished(&self) -> bool[src]

Have all the nodes been visited in the matrix

Trait Implementations

impl Default for PipelineMsgState[src]

impl Debug for PipelineMsgState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,