Skip to main content

IntoFailure

Trait IntoFailure 

pub trait IntoFailure {
    // Required method
    fn into_failure(self) -> Failure;
}
Expand description

What a step function’s error becomes when it is recorded.

Every type that implements Display converts: a Failure as it is, Fusee’s own Error with the failure it carries, boxed errors and io::Error with their source chains, and any other error with its message and type name. Return a Failure to choose the code, details or retryable yourself.

Required Methods§

fn into_failure(self) -> Failure

Implementors§

§

impl<E: Display + 'static> IntoFailure for E