pub struct DoFinallyBuilder { /* private fields */ }Expand description
Builder for a .do_finally() … .end_do_finally() block.
Implementations§
Source§impl DoFinallyBuilder
impl DoFinallyBuilder
Sourcepub fn process(self, processor: BoxProcessor) -> Self
pub fn process(self, processor: BoxProcessor) -> Self
Add a step to the finally block.
Sourcepub fn on_when(self, predicate: FilterPredicate) -> Self
pub fn on_when(self, predicate: FilterPredicate) -> Self
Set an optional predicate that gates whether the finally block runs.
Sourcepub fn end_do_finally(self) -> DoTryBuilder
pub fn end_do_finally(self) -> DoTryBuilder
Close the finally block and return the parent DoTryBuilder.
Auto Trait Implementations§
impl !RefUnwindSafe for DoFinallyBuilder
impl !Sync for DoFinallyBuilder
impl !UnwindSafe for DoFinallyBuilder
impl Freeze for DoFinallyBuilder
impl Send for DoFinallyBuilder
impl Unpin for DoFinallyBuilder
impl UnsafeUnpin for DoFinallyBuilder
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