pub struct OutcomeSegment { /* private fields */ }Expand description
Wrapper around Box<dyn OutcomePipeline>. Constructed via
OutcomeSegment::new(...) and run via run(exchange).
Implementations§
Source§impl OutcomeSegment
impl OutcomeSegment
pub fn new(inner: Box<dyn OutcomePipeline>) -> Self
pub async fn run(&mut self, exchange: Exchange) -> PipelineOutcome
Trait Implementations§
Source§impl Clone for OutcomeSegment
impl Clone for OutcomeSegment
Source§fn clone(&self) -> OutcomeSegment
fn clone(&self) -> OutcomeSegment
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 moreSource§impl Debug for OutcomeSegment
impl Debug for OutcomeSegment
Source§impl OutcomePipeline for OutcomeSegment
OutcomeSegment implements OutcomePipeline by delegating to its inner
Box<dyn OutcomePipeline>. CompiledStep::Segment can now produce
segment directly as Box<dyn OutcomePipeline>.
impl OutcomePipeline for OutcomeSegment
OutcomeSegment implements OutcomePipeline by delegating to its inner
Box<dyn OutcomePipeline>. CompiledStep::Segment can now produce
segment directly as Box<dyn OutcomePipeline>.
Source§fn clone_box(&self) -> Box<dyn OutcomePipeline>
fn clone_box(&self) -> Box<dyn OutcomePipeline>
Clone the segment into a new boxed instance. Required because
Box<dyn OutcomePipeline> cannot directly derive Clone.Source§impl RetryableStep for OutcomeSegment
OutcomeSegment implements RetryableStep so it can participate in the
retry path alongside BoxProcessor. Lives in camel-api (where both
OutcomeSegment and RetryableStep are defined).
impl RetryableStep for OutcomeSegment
OutcomeSegment implements RetryableStep so it can participate in the retry path alongside BoxProcessor. Lives in camel-api (where both OutcomeSegment and RetryableStep are defined).
Auto Trait Implementations§
impl !RefUnwindSafe for OutcomeSegment
impl !Sync for OutcomeSegment
impl !UnwindSafe for OutcomeSegment
impl Freeze for OutcomeSegment
impl Send for OutcomeSegment
impl Unpin for OutcomeSegment
impl UnsafeUnpin for OutcomeSegment
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