pub struct CatchPanicService<S> {
pub inner: S,
}Fields§
§inner: SImplementations§
Source§impl<F> CatchPanicService<F>
impl<F> CatchPanicService<F>
pub fn layer<C>() -> impl FactoryLayer<C, F, Factory = Self>
Trait Implementations§
Source§impl<F: AsyncMakeService> AsyncMakeService for CatchPanicService<F>
impl<F: AsyncMakeService> AsyncMakeService for CatchPanicService<F>
Source§type Service = CatchPanicService<<F as AsyncMakeService>::Service>
type Service = CatchPanicService<<F as AsyncMakeService>::Service>
The type of service this factory creates.
Source§type Error = <F as AsyncMakeService>::Error
type Error = <F as AsyncMakeService>::Error
The type of error that can occur during service creation.
Source§impl<F: MakeService> MakeService for CatchPanicService<F>
impl<F: MakeService> MakeService for CatchPanicService<F>
Source§type Service = CatchPanicService<<F as MakeService>::Service>
type Service = CatchPanicService<<F as MakeService>::Service>
The type of service this factory creates.
Source§type Error = <F as MakeService>::Error
type Error = <F as MakeService>::Error
The type of error that can occur during service creation.
Source§impl<R, S> Service<R> for CatchPanicService<S>where
S: Service<R>,
§Safety
The inner service must be UnwindSafe for this wrapper to function correctly.
Using CatchPanicService with a non-UnwindSafe inner service may lead to
undefined behavior.
impl<R, S> Service<R> for CatchPanicService<S>where
S: Service<R>,
§Safety
The inner service must be UnwindSafe for this wrapper to function correctly.
Using CatchPanicService with a non-UnwindSafe inner service may lead to
undefined behavior.
Auto Trait Implementations§
impl<S> Freeze for CatchPanicService<S>where
S: Freeze,
impl<S> RefUnwindSafe for CatchPanicService<S>where
S: RefUnwindSafe,
impl<S> Send for CatchPanicService<S>where
S: Send,
impl<S> Sync for CatchPanicService<S>where
S: Sync,
impl<S> Unpin for CatchPanicService<S>where
S: Unpin,
impl<S> UnwindSafe for CatchPanicService<S>where
S: 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