pub struct DoTrySegment {
pub try_body: OutcomeSegment,
pub catches: Vec<CatchClauseSegment>,
pub finally: Option<FinallyClauseSegment>,
}Expand description
Outcome-aware structural EIP segment for the doTry/doCatch/doFinally pattern.
Operates at the PipelineOutcome layer so that Stopped(ex) from a
sub-step (e.g. Stop EIP) is preserved with the exchange including all
mutations. See ADR-0025 §5.1 for full semantics.
Fields§
§try_body: OutcomeSegment§catches: Vec<CatchClauseSegment>§finally: Option<FinallyClauseSegment>Trait Implementations§
Source§impl Clone for DoTrySegment
impl Clone for DoTrySegment
Source§impl OutcomePipeline for DoTrySegment
impl OutcomePipeline for DoTrySegment
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.Auto Trait Implementations§
impl !RefUnwindSafe for DoTrySegment
impl !Sync for DoTrySegment
impl !UnwindSafe for DoTrySegment
impl Freeze for DoTrySegment
impl Send for DoTrySegment
impl Unpin for DoTrySegment
impl UnsafeUnpin for DoTrySegment
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