pub struct BoundedPipeline<T> { /* private fields */ }Expand description
Bounded FIFO pipeline with tracing.
Implementations§
Source§impl<T> BoundedPipeline<T>
impl<T> BoundedPipeline<T>
Sourcepub fn new(config: PipelineConfig) -> Self
pub fn new(config: PipelineConfig) -> Self
Creates an empty pipeline.
Sourcepub fn push(&mut self, stage: PipelineStage, value: T) -> RuntimeResult<()>
pub fn push(&mut self, stage: PipelineStage, value: T) -> RuntimeResult<()>
Enqueues a message or rejects when at capacity.
Sourcepub fn pop(&mut self) -> Option<(PipelineStage, T)>
pub fn pop(&mut self) -> Option<(PipelineStage, T)>
Pops the next message.
Trait Implementations§
Source§impl<T: Clone> Clone for BoundedPipeline<T>
impl<T: Clone> Clone for BoundedPipeline<T>
Source§fn clone(&self) -> BoundedPipeline<T>
fn clone(&self) -> BoundedPipeline<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for BoundedPipeline<T>
impl<T> RefUnwindSafe for BoundedPipeline<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedPipeline<T>where
T: Send,
impl<T> Sync for BoundedPipeline<T>where
T: Sync,
impl<T> Unpin for BoundedPipeline<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedPipeline<T>
impl<T> UnwindSafe for BoundedPipeline<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more