pub struct CatchClause {
pub matcher: CatchMatcher,
pub on_when: Option<FilterPredicate>,
pub steps: Vec<BoxProcessor>,
pub disposition: ExceptionDisposition,
}Expand description
A single doCatch clause.
Fields§
§matcher: CatchMatcherThe main matcher (variant-name list or predicate).
on_when: Option<FilterPredicate>Optional sub-predicate evaluated AFTER the main matcher passes.
steps: Vec<BoxProcessor>Sub-pipeline executed when the clause matches.
disposition: ExceptionDispositionADR-0019 disposition: Handled (default), Propagate, or Continued (rejected at parse time).
In YAML, use lowercase: handled, propagate, continued.
Trait Implementations§
Source§impl Clone for CatchClause
impl Clone for CatchClause
Source§fn clone(&self) -> CatchClause
fn clone(&self) -> CatchClause
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 CatchClause
impl !Sync for CatchClause
impl !UnwindSafe for CatchClause
impl Freeze for CatchClause
impl Send for CatchClause
impl Unpin for CatchClause
impl UnsafeUnpin for CatchClause
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