pub struct ErrorHandlerLayer { /* private fields */ }๐Deprecated since 0.16.0:
Use RouteChannelService + DefaultRouteErrorHandler instead
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