[−][src]Struct tempest::pipeline::PipelineInflight
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]
&mut self,
msg_id: &MsgId
) -> Option<&mut (usize, PipelineMsgState)>
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]
&mut self,
msg_id: &MsgId,
edge: &(String, String),
pipeline: &Pipeline
)
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]
&mut self,
msg_id: &MsgId,
edge: &(String, String),
index: usize
) -> PipelineInflightStatus
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]
fn default() -> PipelineInflight
[src]
impl Debug for PipelineInflight
[src]
Auto Trait Implementations
impl Unpin for PipelineInflight
impl Sync for PipelineInflight
impl Send for PipelineInflight
impl UnwindSafe for PipelineInflight
impl RefUnwindSafe for PipelineInflight
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,