pub struct CatchClauseSegment {
pub matcher: CatchMatcher,
pub on_when: Option<FilterPredicate>,
pub body: OutcomeSegment,
pub disposition: ExceptionDisposition,
}Expand description
Handled: the exchange continues through finally and downstream.Propagate: the catch body runs for side effects, finally runs with the catch body’s exchange, and the original try-error re-throws asFailed.
Fields§
§matcher: CatchMatcher§on_when: Option<FilterPredicate>§body: OutcomeSegment§disposition: ExceptionDispositionTrait Implementations§
Source§impl Clone for CatchClauseSegment
impl Clone for CatchClauseSegment
Source§fn clone(&self) -> CatchClauseSegment
fn clone(&self) -> CatchClauseSegment
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 !RefUnwindSafe for CatchClauseSegment
impl !Sync for CatchClauseSegment
impl !UnwindSafe for CatchClauseSegment
impl Freeze for CatchClauseSegment
impl Send for CatchClauseSegment
impl Unpin for CatchClauseSegment
impl UnsafeUnpin for CatchClauseSegment
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