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§
Auto Trait Implementations§
impl !RefUnwindSafe for CatchClauseSegment
impl !UnwindSafe for CatchClauseSegment
impl Freeze for CatchClauseSegment
impl Send for CatchClauseSegment
impl Sync 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