pub struct CatchFilter<F> { /* private fields */ }Expand description
Exception filter wrapper that only handles selected BootErrorKind values.
Implementations§
Source§impl<F> CatchFilter<F>
impl<F> CatchFilter<F>
pub fn new<I>(kinds: I, filter: F) -> Selfwhere
I: IntoIterator<Item = BootErrorKind>,
pub fn kinds(&self) -> &[BootErrorKind]
pub fn into_inner(self) -> F
Trait Implementations§
Source§impl<F> ExceptionFilter for CatchFilter<F>where
F: ExceptionFilter,
impl<F> ExceptionFilter for CatchFilter<F>where
F: ExceptionFilter,
fn catch( &self, context: ExecutionContext, error: BootError, ) -> BoxFuture<'static, Result<Option<BootResponse>>>
Source§impl<F> TransportExceptionFilter for CatchFilter<F>where
F: TransportExceptionFilter,
impl<F> TransportExceptionFilter for CatchFilter<F>where
F: TransportExceptionFilter,
fn catch( &self, context: TransportContext, error: BootError, ) -> BoxFuture<'static, Result<Option<TransportExceptionResponse>>>
Source§impl<F> WebSocketExceptionFilter for CatchFilter<F>where
F: WebSocketExceptionFilter,
impl<F> WebSocketExceptionFilter for CatchFilter<F>where
F: WebSocketExceptionFilter,
fn catch( &self, context: WebSocketContext, error: BootError, ) -> BoxFuture<'static, Result<Option<WebSocketExceptionResponse>>>
Auto Trait Implementations§
impl<F> Freeze for CatchFilter<F>where
F: Freeze,
impl<F> RefUnwindSafe for CatchFilter<F>where
F: RefUnwindSafe,
impl<F> Send for CatchFilter<F>where
F: Send,
impl<F> Sync for CatchFilter<F>where
F: Sync,
impl<F> Unpin for CatchFilter<F>where
F: Unpin,
impl<F> UnsafeUnpin for CatchFilter<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for CatchFilter<F>where
F: UnwindSafe,
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