[][src]Struct tempest::pipeline::PipelineAvailable

pub struct PipelineAvailable {
    pub queue: HashMap<String, VecDeque<TaskMsg>>,
}

This stores a queue of all available messages for given Task name.

Fields

queue: HashMap<String, VecDeque<TaskMsg>>

The queue of available messages by task name

Methods

impl PipelineAvailable[src]

pub fn new(task_names: Vec<String>) -> Self[src]

pub fn len(&mut self, name: &String) -> usize[src]

Returns the current queue length

pub fn pop(
    &mut self,
    name: &String,
    count: Option<usize>
) -> Option<Vec<TaskMsg>>
[src]

Pops n-count of tasks from the front of the queue

pub fn push(&mut self, name: &String, msg: TaskMsg) -> Option<usize>[src]

Pushes a task to the end of the queue

pub fn stats(&mut self) -> HashMap<String, isize>[src]

Trait Implementations

impl Default for PipelineAvailable[src]

impl Debug for PipelineAvailable[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>,