Struct viz_core::handler::CatchError  
source · pub struct CatchError<H, F, R, E> { /* private fields */ }Expand description
Catches rejected error while calling the handler.
Trait Implementations§
Auto Trait Implementations§
impl<H, F, R, E> RefUnwindSafe for CatchError<H, F, R, E>where
    E: RefUnwindSafe,
    F: RefUnwindSafe,
    H: RefUnwindSafe,
    R: RefUnwindSafe,
impl<H, F, R, E> Send for CatchError<H, F, R, E>where
    E: Send,
    F: Send,
    H: Send,
    R: Send,
impl<H, F, R, E> Sync for CatchError<H, F, R, E>where
    E: Sync,
    F: Sync,
    H: Sync,
    R: Sync,
impl<H, F, R, E> Unpin for CatchError<H, F, R, E>where
    E: Unpin,
    F: Unpin,
    H: Unpin,
    R: Unpin,
impl<H, F, R, E> UnwindSafe for CatchError<H, F, R, E>where
    E: UnwindSafe,
    F: UnwindSafe,
    H: UnwindSafe,
    R: UnwindSafe,
Blanket Implementations§
§impl<T> FutureExt for T
 
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
 
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
 
fn with_current_context(self) -> WithContext<Self>
source§impl<I, T> HandlerExt<I> for Twhere
    T: Handler<I> + ?Sized,
 
impl<I, T> HandlerExt<I> for Twhere
    T: Handler<I> + ?Sized,
source§fn boxed(self) -> BoxHandler<I, Self::Output>where
    Self: Sized,
 
fn boxed(self) -> BoxHandler<I, Self::Output>where
    Self: Sized,
Converts this Handler into a BoxHandler.
source§fn before<F>(self, f: F) -> Before<Self, F>where
    Self: Sized,
 
fn before<F>(self, f: F) -> Before<Self, F>where
    Self: Sized,
Maps the input before the handler calls.
source§fn after<F>(self, f: F) -> After<Self, F>where
    Self: Sized,
 
fn after<F>(self, f: F) -> After<Self, F>where
    Self: Sized,
Maps the output 
Result<T> after the handler called.source§fn around<F>(self, f: F) -> Around<Self, F>where
    Self: Sized,
 
fn around<F>(self, f: F) -> Around<Self, F>where
    Self: Sized,
Wraps around the remaining handler or middleware chain.
source§fn map<F>(self, f: F) -> Map<Self, F>where
    Self: Sized,
 
fn map<F>(self, f: F) -> Map<Self, F>where
    Self: Sized,
Maps the 
Ok value of the output if after the handler called.source§fn map_into_response<O>(self) -> MapInToResponse<Self, O>where
    Self: Sized,
 
fn map_into_response<O>(self) -> MapInToResponse<Self, O>where
    Self: Sized,
Maps the handler’s output type to the 
Response.source§fn and_then<F>(self, f: F) -> AndThen<Self, F>where
    Self: Sized,
 
fn and_then<F>(self, f: F) -> AndThen<Self, F>where
    Self: Sized,
Calls op if the result is Ok, otherwise returns the Err value of self.
source§fn map_err<F>(self, f: F) -> MapErr<Self, F>where
    Self: Sized,
 
fn map_err<F>(self, f: F) -> MapErr<Self, F>where
    Self: Sized,
Maps the 
Err value of the output if after the handler called.source§fn or_else<F>(self, f: F) -> OrElse<Self, F>where
    Self: Sized,
 
fn or_else<F>(self, f: F) -> OrElse<Self, F>where
    Self: Sized,
Calls 
op if the output is Err, otherwise returns the Ok value of the output.source§fn catch_error<F, R, E>(self, f: F) -> CatchError<Self, F, R, E>where
    Self: Sized,
 
fn catch_error<F, R, E>(self, f: F) -> CatchError<Self, F, R, E>where
    Self: Sized,
Catches rejected error while calling the handler.
source§fn catch_unwind<F>(self, f: F) -> CatchUnwind<Self, F>where
    Self: Sized,
 
fn catch_unwind<F>(self, f: F) -> CatchUnwind<Self, F>where
    Self: Sized,
Catches unwinding panics while calling the handler.