pub trait FailHandle: Send + Sync {
    // Required methods
    fn fail(&self);
    fn failed(&self) -> bool;
}
Expand description

A fail handle will do the clean up when we cannot recover from some error.

Required Methods§

source

fn fail(&self)

Fail the code.

source

fn failed(&self) -> bool

Returns true if already failed.

Implementations on Foreign Types§

source§

impl FailHandle for Option<Arc<dyn FailHandle>>

source§

fn fail(&self)

source§

fn failed(&self) -> bool

Implementors§