Trait FailHandle

Source
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§