pub enum ErrorHandlerType {
Simple(Arc<dyn ErrorHandler>),
WithRequest(Arc<dyn ErrorHandlerWithRequest>),
}Expand description
Wrapper enum to unify both error handler types.
This enum allows the framework to work with both simple error handlers and request-aware error handlers in a unified way.
Variants§
Simple(Arc<dyn ErrorHandler>)
Simple error handler that doesn’t need request context
WithRequest(Arc<dyn ErrorHandlerWithRequest>)
Error handler that requires access to the original request
Implementations§
Trait Implementations§
Source§impl Clone for ErrorHandlerType
impl Clone for ErrorHandlerType
Source§fn clone(&self) -> ErrorHandlerType
fn clone(&self) -> ErrorHandlerType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErrorHandlerType
impl !RefUnwindSafe for ErrorHandlerType
impl Send for ErrorHandlerType
impl Sync for ErrorHandlerType
impl Unpin for ErrorHandlerType
impl !UnwindSafe for ErrorHandlerType
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