pub struct ErrorHandlerLayer { /* private fields */ }Expand description
Tower Layer that wraps a pipeline with error handling behaviour.
Constructed with already-resolved producers; URI resolution happens in camel-core.
Implementations§
Source§impl ErrorHandlerLayer
impl ErrorHandlerLayer
Sourcepub fn new(
dlc_producer: Option<BoxProcessor>,
policies: Vec<(ExceptionPolicy, Option<BoxProcessor>)>,
) -> Self
pub fn new( dlc_producer: Option<BoxProcessor>, policies: Vec<(ExceptionPolicy, Option<BoxProcessor>)>, ) -> Self
Create the layer with pre-resolved producers.
Trait Implementations§
Source§impl<S> Layer<S> for ErrorHandlerLayer
impl<S> Layer<S> for ErrorHandlerLayer
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorHandlerLayer
impl !Sync for ErrorHandlerLayer
impl !UnwindSafe for ErrorHandlerLayer
impl Freeze for ErrorHandlerLayer
impl Send for ErrorHandlerLayer
impl Unpin for ErrorHandlerLayer
impl UnsafeUnpin for ErrorHandlerLayer
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