Skip to main content

ErrorPolicyWithCause

Trait ErrorPolicyWithCause 

Source
pub trait ErrorPolicyWithCause<I: Operand, C: Error + 'static>: Clone + 'static {
    type Output: Operand;

    // Required method
    fn build(&self, input: I) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn build(&self, input: I) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I, C, A> ErrorPolicyWithCause<I, C> for Replace<A>
where C: Error + 'static, A: Clone + 'static, ReplaceErrorsWithCause<C, A>: Operation, I: Apply<ReplaceErrorsWithCause<C, A>>,

Source§

impl<I, E, C> ErrorPolicyWithCause<I, E> for RaiseWhen<C>
where E: Error + 'static, C: Clone + 'static, RaiseWhenErrorsWithCause<E, C>: Operation, I: Apply<RaiseWhenErrorsWithCause<E, C>>,

Source§

impl<I: Apply<DropErrorsWithCause<C>>, C: Error + 'static> ErrorPolicyWithCause<I, C> for Drop

Source§

impl<I: Apply<RaiseErrorsWithCause<E>>, E: Error + 'static> ErrorPolicyWithCause<I, E> for Raise