[][src]Struct tempest::pipeline::PipelineInflight

pub struct PipelineInflight { /* fields omitted */ }

All messages inflight (i.e. being worked on by tasks).

Methods

impl PipelineInflight[src]

pub fn new(msg_timeout: Option<usize>) -> Self[src]

Initialize a this struct using the max msg timeout value

pub fn size(&mut self) -> usize[src]

pub fn get(&self, msg_id: &MsgId) -> Option<&(usize, PipelineMsgState)>[src]

Returns the MsgInflightStatus for a given message id

pub fn get_mut(
    &mut self,
    msg_id: &MsgId
) -> Option<&mut (usize, PipelineMsgState)>
[src]

pub fn root(&mut self, msg_id: MsgId, timestamp: usize, state: PipelineMsgState)[src]

This method is called when first we first see a message It keeps track of the timestamp (the message was read by the source so we can use it to determine timeouts later) and the initialized PipelineMsgState

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

This method supports the use-case where an AckEdge triggers releasing an empty holding pen... We need to visit all descendant edges with a single ancestor from here since this method is always called after ack we can skip returning the PipelineInflightStatus here

pub fn ack(
    &mut self,
    msg_id: &MsgId,
    edge: &(String, String),
    index: usize
) -> PipelineInflightStatus
[src]

This method is called after a message by index, for a given edge, is acked

pub fn clean_msg_id(&mut self, msg_id: &MsgId)[src]

Remove a message by id

pub fn finished(&self, msg_id: &MsgId) -> bool[src]

Mark this message state as finished

Trait Implementations

impl Default for PipelineInflight[src]

impl Debug for PipelineInflight[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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>,